Say - what if I wanted to move every HTML file in several independent directories with the word "heavengames" in its filename (and as a second question, every HTML files with the word "heavengames" in its body text) to a new directory named "heavengames-threads"?
To move files with the word in its name:
To move files with word in its body:
ps. to check that all is correct, add
In zsh or bash ≥4, based on the file name:
For more portable commands, use