If it's a list of files with full paths:
Code:
rm $(cat listing_file) </dev/null
or, if the list is so large that the argument list becomes too long:
Code:
xargs rm <listing_file
The "</dev/null" redirection in that first option is so that you don't get prompted for files without write permission. It's not needed in the second option since stdin for the
rm command will already be /dev/null.
If the list includes directories, then you would be better off using
find with the "-delete" action, which works for both files and directories:
Code:
find $(cat listing_file) -delete
but I don't know how you could get the
xargs version of that to work.