Re: Sorting by date

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



erikmccaskey64 wrote:
> 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?
>
Don't suppose these are in a directory and modification date has been preserved, 
are they? Because "ls -t" is your friend.

Otherwise run ls output through a tiny perl program and convert to YYYYMMDDHHMM 
names and hard link the old name to the new.

-- 
Bill Davidsen <davidsen@xxxxxxx>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux