Use grep to find content in files and move them if they match
Posted
by sandrv
on Stack Overflow
See other posts from Stack Overflow
or by sandrv
Published on 2008-09-18T12:03:45Z
Indexed on
2010/05/31
20:03 UTC
Read the original article
Hit count: 167
I'm using grep to generate a list of files I need to move:
grep -L -r 'Subject: \[SPAM\]' .
How can I pass this list to the mv command and move the files somewhere else?
© Stack Overflow or respective owner