Recursive move files of specific type to a specific path
- by macek
In ~/my/path, I want to move all files that contain string "(J)" and have file type of ".foo" to ~/my/path/j
I'm trying:
[me ~/my/path]$ find -type f -name "*(J)*.foo" -print0 | xargs mv -0 j/
No luck :(