[NTLUG:Discuss] Removing lots of Files - help.

Bobby Sanders ssanders at vzinet.com
Sun Apr 6 15:25:45 CDT 2003


Many thanks, Vic.  Completely forgot about the -exec switch and was to
dumb to remember to do "man find."  Thanks, again.

Bobby

--On Sun, 06 Apr 2003 13:52:09 -0500, Victor Brilon <victor at vail.net> said:

  VB> find /full/path/to/dir -name '*~' -exec rm -i {} \; Obviously
  VB> change the path to be the full path to where you want to start
  VB> looking. And get rid of the '-i' if you're feeling brave and
  VB> don't want confirmation of every file you nuke :)

  VB> Victor

  VB> Bobby Sanders wrote:
  >> I want to remove all of the files on my system which end in
  >> tilde, ~.  I'm running bash, know this should be easy, have read
  >> lots of Cameron's book, which I love, but can't put my finger on
  >> this.
  >> 
  >> Help please.  Thanks.
  >> 
  >> Bobby Sanders



More information about the Discuss mailing list