Having rm or mv take file input
how can i get rm to take a file input? i have a text file with a bunch of paths in it, but how do i get rm or mv to do their stuff to the files instead of to the text file itself?
|
Code:
[user@domain ~]$ rm < filename |
nah, im not that n00bish tried that it says for rm too few args and for mv missing file arg... :(
|
xargs
You need to use xargs to split the file into separate tokens, each with its own call to rm.
Like so: Code:
xargs rm -f < thefile |
alright ill try that thanks guys!
|
All times are GMT -5. The time now is 11:54 AM. |