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 :(
|
feedback
|
|
How about find ~/my/path -type f -name "*(J)*.foo" -exec mv {} ~/my/path/j \;
| |||||||||
feedback
|
|
The
By the way, posting an error message or other details instead of "no luck" helps diagnose problems. | |||||
feedback
|
|
How about
| |||
feedback
|