Remove files that are listed in a text file
No need for cat
or a loop:
xargs -d '\n' -a file.list rm
$ cat file.list | xargs rm
while read filename ; do rm "$filename" ; done < files.lst
No need for cat
or a loop:
xargs -d '\n' -a file.list rm
$ cat file.list | xargs rm
while read filename ; do rm "$filename" ; done < files.lst