Recursive move files of specific type to a specific path
Posted
by macek
on Super User
See other posts from Super User
or by macek
Published on 2010-02-01T03:36:28Z
Indexed on
2010/05/26
9:33 UTC
Read the original article
Hit count: 337
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 :(
© Super User or respective owner