Using the find command with a pipe to copy
Hi
I want to be able to use the 'find' command to look for files containing a particular pattern (ignoring case) in their filenames ,then copy these to another directory. I have not been able to get this to work. Is this possible? Regards |
Yes it should be something like this:
Code:
find / -name *baa* -exec "cp {} /home/baa/" |
Quote:
Code:
find / -iname "*baa*" -exec cp "{}" /home/baa/ \; |
Thanks
pwc101 - works like a dream, thanks for the quick replies very much appreciated |
All times are GMT -5. The time now is 10:12 AM. |