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

Re: [cobalt-developers] Re:find command



"Byron C. Servies" wrote:

> which will return just '/etc/motd' (and probably some permission denied warnings
> for directories under /etc it cannot cd into).

Find returns errors to the standard error output and it's list of found
files to the standard output.  On your RaQ, both of these are the
terminal you've logged in to.

You can separate out the errors from the useful data by doing it this
way:

$ find /etc -name motd >tempfile

Then tempfile will include only the useful stuff, after the error
messages scroll across your screen and you're back at the $ prompt. 
Then

$ cat tempfile

will give you what you need.

(You can either delete tempfile or leave it; it'll get written over the
next time you do a find from that directory.)

Of course for this to work, you have to have write permissions in the
directory you're starting from.

Jeff
-- 
Jeff Lasman <jblists@xxxxxxxxxxxxx>
nobaloney.net
P. O. Box 52672
Riverside, CA  92517
voice: (909) 787-8589  *  fax: (909) 782-0205