Link to home
Start Free TrialLog in
Avatar of veedar
veedarFlag for United States of America

asked on

Sorting by date in a bash script... mm/dd/yyyy

Given a list of dates like so...

10/13/2003
7/3/2004
1/6/2005
4/22/2004
11/2/2003

...how can I sort them youngest to oldest?

This is for a bash script under cygwin on winxp.
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of veedar

ASKER

I had to provide the full path /usr/bin/sort as it was picking up the windows sort. Once I did that it worked like a charm.
Thanks you ozo