home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!cs.utexas.edu!convex!convex!tchrist
- From: Tom Christiansen <tchrist@convex.COM>
- Subject: Re: executing down directory tree
- Originator: tchrist@pixel.convex.com
- Sender: usenet@news.eng.convex.com (news access account)
- Message-ID: <1992Aug12.135418.14972@news.eng.convex.com>
- Date: Wed, 12 Aug 1992 13:54:18 GMT
- Reply-To: tchrist@convex.COM (Tom Christiansen)
- References: <_a4m!xr.bosak@netcom.com> <1992Aug12.121039.14799@zeos.com>
- Nntp-Posting-Host: pixel.convex.com
- Organization: CONVEX Realtime Development, Colorado Springs, CO
- X-Disclaimer: This message was written by a user at CONVEX Computer
- Corp. The opinions expressed are those of the user and
- not necessarily those of CONVEX.
- Lines: 30
-
- From the keyboard of kgermann@zeos.com (Ken Germann):
- :>KG> >how to i do a certain task in the current directory and all it's sub-
- :>KG> >directories? i'd like to be able to do:
- :>KG> > global rm *~
- :>KG> >to remove backup files.
- :>KG> > thomas
- :>KG>
- :>KG> rm -r <sub-dir>
- :
- :I missed the part the ~ tilde.
- :
- :rm -r <subdir>/*~ should remove all the file in the subdirectory and below
- :that have a tilde in them .
-
- Surely you jest.
-
- rm -r foo/*~
-
- is nothing at all like
-
- find foo -name '*~' -print | xargs rm # caveat newlines
-
-
- --tom
-
- --
- Tom Christiansen tchrist@convex.com convex!tchrist
-
-
- Emacs is a fine operating system, but I still prefer UNIX. -me
-