Folder 1 containing around 500 files
Folder 2 for filtered material
The idea: grep all files in Folder 1 for say "cookie" and mv all files containing "cookie" into Folder 2
public_html/Folder1
public_html/Folder2
I've tried everything I can find online such as
grep -l "cookie" searchfiles | xargs -n1 {} mv "{}" /Folder2
mv `grep -lr 'cookie' /Folder1` /Folder2
But nothing, anyone