finding things in unix

John Esak john at valar.com
Mon Apr 26 14:13:04 PDT 2010


> | 
> | John Claude does a lot of things like this with "look" in 
> other history
> | files, or ad-hoc files.  Of course, he would have it names 
> something like
> | "echq" or such.   :-)
> 
> 'look' needs  to delve into a sorted list...
> 
> 
> -- 
> JP

Yes, I wasn't trying to lay out the whole routine, rather show that
searching a simple text file (sorted or not) is way faster than using a
utility to search in thousands of folders....  If you have the luxury of
making a sorted file... Than "look" jumps into your toolbox for this kind of
thing.

And if he has BackupEDGE and makes good backups every night... Then grep'ing
into that master backup file list is the perfect way to find where any file
(or directory) lives. And of course we all know even directories (and
devices) and pipes and all sorts of what not are "files" as seen by Unix.
So having a ready-made list each day in a file has lots of uses.

John



More information about the Filepro-list mailing list