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
This alternative works where xargs is not availabe:
grep -L -r 'Subject: \[SPAM\]' . | while read f; do mv "$f" out; done