Thanks, it works.
Maybe...
find / -iname '*simpson*' -exec mv {} /home/shawn/tv/simpsons \;
The space and \; before /home/shawn... are required.
This works great.
The suggestion from Rob Rogers
find / -iname '*simpsons*' 2>>/dev/null | xargs mv \
--target-directory=/home/shawn/tv/simpsons
This does not work. The problem is that when I run it, it breaks the
returned values into many pieces. Example, when I tried to move any
file with 'horse' in the name:
Here are some existing files:
/home/shawn/storage/comedy/schimmel/Comedy - Robert Schimmel -
Introduction Horse
Farts.mp3
/home/shawn/storage/music/America/History Greatest Hits/01_A Horse
With No Name.mp3
/home/shawn/storage/music/Dave Matthews Band/Dave Mathews Band &
Rolling Stones -
Wild Horses(live).mp3
/home/shawn/storage/music/MP3 (Unsorted)/The Sundays - Wild Horses
[FEAR SOUNDTRACK].mp3
/home/shawn/the sundays - wild horses (1).mp3
Results:
mv: cannot stat `Greatest': No such file or directory
mv: cannot stat `Hits/01_A': No such file or directory
mv: cannot stat `Horse': No such file or directory
mv: cannot stat `With': No such file or directory
mv: cannot stat `No': No such file or directory
mv: cannot stat `Name.mp3': No such file or directory
mv: cannot stat `/home/shawn/storage/music/Dave': No such file or
directory
mv: cannot stat `Matthews': No such file or directory
mv: cannot stat `Band/Dave': No such file or directory
mv: cannot stat `Mathews': No such file or directory
mv: cannot stat `Band': No such file or directory
mv: cannot stat `&': No such file or directory
mv: cannot stat `Rolling': No such file or directory
mv: cannot stat `Stones': No such file or directory
mv: cannot stat `-': No such file or directory
mv: cannot stat `Wild': No such file or directory
mv: cannot stat `Horses(live).mp3': No such file or directory
mv: cannot stat `/home/shawn/storage/music/MP3': No such file or
directory
mv: cannot stat `(Unsorted)/The': No such file or directory
mv: cannot stat `Sundays': No such file or directory
mv: cannot stat `-': No such file or directory
mv: cannot stat `Wild': No such file or directory
mv: cannot stat `Horses': No such file or directory
mv: cannot stat `[FEAR': No such file or directory
mv: cannot stat `SOUNDTRACK].mp3': No such file or directory
mv: cannot stat `/home/shawn/the': No such file or directory
mv: cannot stat `sundays': No such file or directory
mv: cannot stat `-': No such file or directory
mv: cannot stat `wild': No such file or directory
mv: cannot stat `horses': No such file or directory
mv: cannot stat `(1).mp3': No such file or directory
mv: cannot stat `/home/shawn/the': No such file or directory
mv: cannot stat `sundays': No such file or directory
Any one have any suggestions as to why this is happening? Not too
important, since Luis Fdez. helped me out, but I thought that maybe it
would be a nice intellectual challenge for one of you shell hackers
out there.
Thanks again to the group, for once again coming through.
Shawn