[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: the ~ files



> ~> with the command without risk :
> ~>         rm -R *~

This command is risk because if you type:

  rm -R * ~
         ^space here

You will erase EVERYTHING in the current directory and below.

Instead, first type:

  find . -name '*~' | xargs echo

and if this looks ok, then edit the command to 

  find . -name '*~' | xargs rm -r


This way, you are reasonably sure that you won't kill everything off.

carl


Reply to: