Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!husc6!yale!spolsky-joel From: spolsky-joel@CS.YALE.EDU (Joel Spolsky) Newsgroups: comp.unix.questions Subject: Re: cleanup script needed Message-ID: <52736@yale-celray.yale.UUCP> Date: 5 Mar 89 16:04:09 GMT References: <15659@oberon.USC.EDU> Sender: root@yale.UUCP Reply-To: spolsky-joel@CS.YALE.EDU (Joel Spolsky) Organization: Yale University Computer Science Dept, New Haven CT 06520-2158 Lines: 32 In article <15659@oberon.USC.EDU> rkumar@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@yalecs.bitnet uucp: ...!yale!spolsky | | | internet: spolsky@cs.yale.edu voicenet: 203-436-1483 | +----------------+----------------------------------------------------------+ #include