Path: utzoo!mnetor!uunet!husc6!hao!boulder!sunybcs!rutgers!clyde!cbosgd!osu-cis!dsacg1!dlag1!fm06222
From: fm06222@dlag1.UUCP (Bill Wallace)
Newsgroups: comp.unix.questions
Subject: Re: Finding Files
Message-ID: <91@dlag1.UUCP>
Date: 10 Dec 87 14:37:30 GMT
References: <205700003@prism>
Organization: HQ Defense Logistics Agency/DASC, Cameron Station, VA
Lines: 24
Summary: Using Find database

In article <205700003@prism>, billc@prism.UUCP writes:
> 
> 	    alias	where	"find \$cwd -name \!* -exec echo {} \;"
> 
> 	Question: Is there a better way to do this?

On our copy of Unix (Gould UTX/32 - basically a BSD 4.3 clone) we have
the option of establishing a database for find.  There's a script that
we run out of crontab in the middle of the night to update the database
daily, so the results are usually good enough.  The command is simple:

	    find  

and so doesn't really need an alias.  Note, unlike the -name option,
a search is made on any occurrence of the string - not just an exact
match of the name.  This is both useful and frustrating.  A single
"find core" will help the systems administrator clean up disk space,
but you'd better pipe the output from "find alais" to more. (or less)

-- 
*  Bill Wallace     {seismo!gould,cbosgd!osu-cis}!dsacg1!dlag1!bwallace  *
*  Administrative Support Center  (DASC-ZWC)      phone  (202) 274-9336  *
*  Cameron Station  Room 4C652                    Autovon      284-9336  *
*  Alexandria,  VA  22304                                                *