home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / question / 10008 < prev    next >
Encoding:
Text File  |  1992-08-12  |  1.4 KB  |  48 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!cs.utexas.edu!convex!convex!tchrist
  3. From: Tom Christiansen <tchrist@convex.COM>
  4. Subject: Re: executing down directory tree
  5. Originator: tchrist@pixel.convex.com
  6. Sender: usenet@news.eng.convex.com (news access account)
  7. Message-ID: <1992Aug12.135418.14972@news.eng.convex.com>
  8. Date: Wed, 12 Aug 1992 13:54:18 GMT
  9. Reply-To: tchrist@convex.COM (Tom Christiansen)
  10. References: <_a4m!xr.bosak@netcom.com> <1992Aug12.121039.14799@zeos.com>
  11. Nntp-Posting-Host: pixel.convex.com
  12. Organization: CONVEX Realtime Development, Colorado Springs, CO
  13. X-Disclaimer: This message was written by a user at CONVEX Computer
  14.               Corp. The opinions expressed are those of the user and
  15.               not necessarily those of CONVEX.
  16. Lines: 30
  17.  
  18. From the keyboard of kgermann@zeos.com (Ken Germann):
  19. :>KG> >how to i do a certain task in the current directory and all it's sub-
  20. :>KG> >directories? i'd like to be able to do:
  21. :>KG> >   global rm *~
  22. :>KG> >to remove backup files.
  23. :>KG> >  thomas
  24. :>KG> 
  25. :>KG> rm -r <sub-dir>
  26. :
  27. :I missed the part the ~ tilde.  
  28. :
  29. :rm -r <subdir>/*~ should remove all the file in the subdirectory and below
  30. :that have a tilde in them .
  31.  
  32. Surely you jest.
  33.  
  34.     rm -r foo/*~
  35.  
  36. is nothing at all like
  37.  
  38.     find foo -name '*~' -print | xargs rm  # caveat newlines
  39.  
  40.  
  41. --tom
  42.  
  43. -- 
  44.     Tom Christiansen      tchrist@convex.com      convex!tchrist
  45.  
  46.  
  47. Emacs is a fine operating system, but I still prefer UNIX. -me
  48.