Re: How to sort by date in descending order

2010-02-27 Thread L
On Sun, Feb 28, 2010 at 4:20 AM, Roberto Ragusa wrote: > Dave Cross wrote: >> On 26 February 2010 13:40, Roberto Ragusa wrote: >>> Richard Cahilig wrote: > Your help is very much appreciated. Thanks. >>> while read a b; do s1=`date --date "$b" +%s`; echo $s1 $a $b;done >>> > >> Very nice. J

Re: How to sort by date in descending order

2010-02-27 Thread Roberto Ragusa
Dave Cross wrote: > On 26 February 2010 13:40, Roberto Ragusa wrote: >> Richard Cahilig wrote: >>> Your help is very much appreciated. Thanks. >> while read a b; do s1=`date --date "$b" +%s`; echo $s1 $a $b;done >> > Very nice. Just one small addition - pass the output through cut to > get bac

Re: How to sort by date in descending order

2010-02-26 Thread Dave Cross
On 26 February 2010 13:40, Roberto Ragusa wrote: > Richard Cahilig wrote: >> Hi, >> >> Guys I need your help, I have a text file which contains these data >> below, and I want to sort it by date in descending order. I tried to use >> sort -rn command but it gives me different output. I know I miss

Re: How to sort by date in descending order

2010-02-26 Thread Patrick O'Callaghan
On Fri, 2010-02-26 at 12:59 +0100, Richard Cahilig wrote: > Hi, > > Guys I need your help, I have a text file which contains these data > below, and I want to sort it by date in descending order. I tried to > use sort -rn command but it gives me different output. You just told it to sort in rever

Re: How to sort by date in descending order

2010-02-26 Thread Roberto Ragusa
Richard Cahilig wrote: > Hi, > > Guys I need your help, I have a text file which contains these data > below, and I want to sort it by date in descending order. I tried to use > sort -rn command but it gives me different output. I know I missing > something but I just can't figure it out. > > fil

How to sort by date in descending order

2010-02-26 Thread Richard Cahilig
Hi, Guys I need your help, I have a text file which contains these data below, and I want to sort it by date in descending order. I tried to use sort -rn command but it gives me different output. I know I missing something but I just can't figure it out. files 03-Sep-2009 files 04-Nov-200