I have a long text file with list of file masks I want to delete
Example:
/tmp/aaa.jpg /var/www1/* /var/www/qwerty.php
I need delet
Here's another looping example. This one also contains an 'if-statement' as an example of checking to see if the entry is a 'file' (or a 'directory' for example):
for f in $(cat 1.txt); do if [ -f $f ]; then rm $f; fi; done