find and fin

bernstei@merck.com
Fri, 14 Jan 1994 09:21:46 -0500

Folks,
Unix "find" is a great command and many have spoken with some
detail. (Incidentally, if you're getting going with Unix and need some
reference books, we use the O'Reilly series a lot.) Here's a few uses I
found for "find" which I thought some might find helpful. (Be very careful
using "find" with "rm -r" .. you can get some serious losses!). All find
commands are long, so put them in you .alias file.

alias ou '(find \!:1 -name \!:2 -print > /dev/$tty) >& /dev/null'
This is useful for looking for a file. Specify the starting point
and filename, e.g. ou /usr hosts. Errors (permission violations) are not
printed.

'find /mtlnmr1_a/data/\!:1/nmr/\!:2/\!:3/pdata/\!:4/title -print -exec cat
{} \;'
Now this is useful for printing titles for any user, name, expno,
and procno (wildcards are O.K.). Be sure to customize "mtlnmr1_a".

Mike

++++++++++++++++++++++++++
Michael A. Bernstein
Merck Frosst Canada, Inc.
P. O. Box 1005
Pointe Claire-Dorval, Que.
CANADA H9R 4P8
(514)428-3931 (voice)
(514)428-8615 (fax)