A shell script that is used to recursively remove any pattern of files like swap files, thumb.db files, etc, under a given folder and the subfolders under the given folder.
Features
Recursively Remove your unwanted files in a fraction of second.
It makes easier to find and delete the swap files under the folder and subfolder of the given path.
Just copy the code and use it in your command prompt.
Fast and simple remove files shell script.
Downloads
#------------------Script by hscripts.com------------------# #--------------More scripts @www.hscripts.com---------------# #!/bin/bash echo "Enter Folder Name under which you want to remove files:"; read fname echo "Enter the pattern to remove (for eg, if swap files give as *~ else if thumbs.db give as Thumbs.db)"; read name1 echo "Total Count of files found on the pattern" $name1; find $fname -type f -name "$name1" | xargs wc -l find $fname -type f -name "$name1" -exec rm {} \; #------------ Script by hscripts.com -------------------------#