I was wondering if anyone could tell me how to use the grep command and the rm command together. I have a .txt file that I need to edit lines from. I can grep for those lines but I need to pipe/redirect them to the rm command to get rid of them. Example:
grep word (filename) | rm
Any ideas?
Thanks a million!
grep word (filename) | rm
Any ideas?
Thanks a million!