How to sort find results

David Fleck david.fleck at mchsi.com
Mon Nov 7 20:24:13 GMT 2005


On Mon, 7 Nov 2005, Jeffrey Ellis wrote:

> Hi, David--
>
> Thank you.
>
> Wow. That looks great...
>
> Um... Can you tell me how to run it?

Assuming you've saved everything from '#!/usr/bin/perl' to the final '}', 
inclusive, to a file, name the file something, like 'date_sort'. Then

   chmod +x date_sort

   ./date_sort /directory/to/sort

I use this primarily on directory hierarchies of regular files, so I'm not 
guaranteeing what will happen if you use it on directories that contain 
other sorts of files.


--
David Fleck
david.fleck at mchsi.com



More information about the freebsd-questions mailing list