Sorting by date

Cybe R. Wizard cyber_wizard at mindspring.com
Tue Mar 8 06:19:50 UTC 2011


On Mon, 7 Mar 2011 17:33:40 -0800
MR ZenWiz <mrzenwiz at gmail.com> wrote:

> On Sat, Mar 5, 2011 at 4:08 AM, Colin Law <clanlaw at googlemail.com>
> wrote:
> > On 5 March 2011 11:23, Florian Diesch <diesch at spamfence.net> wrote:
> > > erikmccaskey64 <erikmccaskey64 at zoho.com> writes:
> > >
> > >> Original:
> > >> Jan 23 2011 10:42 SOMETHING 2007.12.20.avi
> > >> Jun 26 2009 SOMETHING 2009.06.25.avi
> > >> Feb 12 2010 SOMETHING 2010.02.11.avi
> > >> Jan 29 2011 09:17 SOMETHING 2011.01.27.avi
> > >> Feb 11 2011 20:06 SOMETHING 2011.02.10.avi
> > >> Feb 27 2011 23:05 SOMETHING 2011.02.24.avi
> > >>
> > >> Output:
> > >> Feb 27 2011 23:05 SOMETHING 2011.02.24.avi
> > >> Feb 11 2011 20:06 SOMETHING 2011.02.10.avi
> > >> Jan 29 2011 09:17 SOMETHING 2011.01.27.avi
> > >> Jan 23 2011 10:42 SOMETHING 2007.12.20.avi
> > >> Feb 12 2010 SOMETHING 2010.02.11.avi
> > >> Jun 26 2009 SOMETHING 2009.06.25.avi
> > >>
> > >> How could I get the output where the newest file is at the top?
> > >
> > > sort  -k3nr -k1Mr -k2nr -k4gr  your_file
> > >
> > Unfortunately the OP, having received several suggestions, has not
> > bothered to come back and either offer thanks for the help or
> > further explain the problem. :(
> >
> 
> Now, why am I not the least bit surprised?
> 
Do you mean to say that you think erikmccaskey64 to be a troll?  Perish
the thought!  I had long since taken it for fact.

Cybe R. Wizard
-- 
When Windows are opened the bugs come in.
	Winduhs




More information about the ubuntu-users mailing list