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
xargs -I{} sh -c 'rm {}' < 1.txt should do what you want. Be careful with this command as one incorrect entry in that file could cause a lot of trouble.
xargs -I{} sh -c 'rm {}' < 1.txt
This answer was edited after @tdavies pointed out that the original did not do shell expansion.