www.mass.dk

Sharing what I know...

  • Increase font size
  • Default font size
  • Decrease font size
Home Netbackup Quick hints Removing files containing special symbols

Removing files containing special symbols

 

If you need to delete a file containing special symbol/character (eg *) a little care need to be exercised. Lets say you have a file named * and you do "rm *", the shell will treat the symbol as an regular expression and delete all files in that catalog. However you can get rid of the file by using the full path and use quotation marks around the path :

 # rm -i "/full_path/*"

 

Last Updated on Thursday, 14 May 2009 13:33