I have a list of file names of files i need to delete.
Is there a way to write a batch file that i can specify Linux to delete these files with the given names?
You can simply call:
\rm -f $(<file.txt)
To remove all the files listed in a file called file.txt (1 per line of course).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With