I made a simple script that removes files specified by a file .clean
in the current working directory.
The script is like this.
- Put this script at
~/bin/
or somewhere the shell can find by looking atPATH
environment variable. - In any directory where there are many files you want to remove often, create the file
.clean
which is something like
out.*
*.txt
- Run the above script,
$ clean
Then the files specifined by the .clean
file will be removed.
It is a very simple script, but it is very convenient for my daily routines.