Quote:
Originally Posted by Zmyrgel
Yes it should be something like this:
Code:
find / -name *baa* -exec "cp {} /home/baa/"
|
To ignore the case, you'd want -iname, not -name. You also need to enclose the *baa* in quotes, otherwise the shell parses it rather than letting find expand the asterisks. The find command needs to be finished with \; at the end too, and finally, the quotes need to go around the {}, not the whole cp command:
Code:
find / -iname "*baa*" -exec cp "{}" /home/baa/ \;
I think
