August 19th, 2003, 12:26 PM
Removing files in UNIX
1) I have a file with the names of the files inside.
2) I need to make the rm command to use that file as an input of files to delete.
Here is I what I tried but it did not work:
cat rm_list.txt > rm
It is probably a simple thing to do but I'm not very good with connecting I/O from commands yet.
Please show me how if you know
August 22nd, 2003, 02:52 PM
Almost had it right
Almost had it...
Uuse the following from the command line:
for x in `cat rm_list.txt`
(Just in case you're not aware, those are ticks, the symbol on the same key as the tilde, not single quotes)
Let it run, your files will be gone.
Hope this helps.