For some reason my machine is full of M$ Word temporary files such as:
~$Filename.docx
~$AnotherFile.docx
Can someone suggest a find/regex command to search $HOME and delete them?
|
For some reason my machine is full of M$ Word temporary files such as:
Can someone suggest a find/regex command to search $HOME and delete them? |
||||
|
In bash 4 or above:
In zsh or ksh93, you can use the |
||||
|
|
|
Use this to remove all files which start with
|
||||
find . | egrep \~ | while read f; do mv "$f" ~/Desktop/Trash/;done– Nick Apr 6 '12 at 9:17