cleanup script needed
Joel Spolsky
spolsky-joel at CS.YALE.EDU
Mon Mar 6 02:04:09 AEST 1989
In article <15659 at oberon.USC.EDU> rkumar at buddha.usc.edu () writes:
>This may be quite silly to the UNIX wizards.
>
>1) Frequently I need to erase unnecessary files to save space.
>It would be nice to have a script which removes all
>the files with a specified extension, e.g., .dvi or .aux
>not only in the current directory, but in all the
>children directories recursively.
>Will rm -r *.dvi do the job? Since it is an "rm" command,
>I don't want to try it out ...
>
>2) Sometimes I create a file in a directory which is deep
>down in a directory hierarchy. Any quick way to search for
>a file, given its name/template?
>
>Thanks
>Ravi
>--- :-)
>Pardon me, but UNIX *is* male chauvinistic. Look at all those
>*man* commands!
>--- :-(
Look into the find command. It's kinda complicated so it's worth
reading the manual page. Basically find produces a list of files that
satisfy given criteria.
+----------------+----------------------------------------------------------+
| Joel Spolsky | bitnet: spolsky at yalecs.bitnet uucp: ...!yale!spolsky |
| | internet: spolsky at cs.yale.edu voicenet: 203-436-1483 |
+----------------+----------------------------------------------------------+
#include <disclaimer.h>
More information about the Comp.unix.questions
mailing list