1. Piping results of a 'find' command to a 'mv' command...
Is there a way to do the following without scripting:
Pipe the contents of a 'find' command to a 'mv' command, so that the
results of 'find', example:
find / -iname '*simpsons*' 2>>/dev/null
/home/shawn/downloads/simpsons1.mpg
/home/shawn/simpsons/Halloween Special IX.mpg
/home/shawn/unsorted/simpsons02.mpg
are all moved to a folder of my choosing:
Something like:
find / -iname '*simpsons*' 2>>/dev/null | mv /home/shawn/tv/simpsons
Can anyone help? If scripting is required, I don't mind, but I
thought that if there was an easy way, I'd like to use it.
If scripting is required, is there an easy way to do it just by
creating a script containing a list of commands and running it after
chmod +x? Or would I have to do something with Perl in order to loop
through the results of the 'find'?
I know a little Perl, but if there is some other type of scripting
preferred for this type of thing, please tell me the name of it and
where I might find a little documentation.
Thank you for any help you can give. And please, even if the answer
can be derived from a particular command, do not simply type 'man
commandName'. A little description/advice would be very nice.
Shawn
2. NIS setup issues
3. Flexfax -- "Can not find port number for 'fax' service" -- ???
4. Change Hard Drive -- help
5. usage of 'foreach' and 'find' commands
6. NEW IDE HD on my SCO Openserver 5.05!!!!
7. Need to find info on the 'FIND' command
8. What is wrong with this script syntax?
9. qmail / cyrus: cyrus deliver (lmtp) doesn't work ... need help!
10. Usind 'find' command to find certain text within a file
11. can't find proto indicator in PF log msg.
12. Port of Sun's 'bar' command?
13. 'Find' 'Updatedb' or find database replacement for Solaris 2.X?