Home » Questions » Computers [ Ask a new question ]

Recursive move files of specific type to a specific path

Recursive move files of specific type to a specific path

In ~/my/path, I want to move all files that contain string "(J)" and have file type of ".foo" to ~/my/path/j

Asked by: Guest | Views: 366
Total answers/comments: 2
Guest [Entry]

"How about

find ~/my/path -type f -name ""*(J)*.foo"" -exec mv {} ~/my/path/j \;"
Guest [Entry]

"How about

mv `find -name *(J)*.foo` -t /my/path"