You need to specify your destination direcory in your find. find . -type f -name "create*table*.pl" -ok cp {} location \;
-----Original Message----- From: Purohit, Bhargav [mailto:[EMAIL PROTECTED] Sent: 19 September 2007 10:36 To: beginners@perl.org Subject: Help on unix command find. Hi all, I want to copy certain perl files from one of my directory to some other directory The problem is that I do not remember the exact name of file and also the directory in which it is located so I am using following command Form my destination folder (say it is /home/bhargav/) find . -type f -name "create*table*.pl" -ok cp {} \; But it is giving error of giving destination folder. I don't know how to give dest. Folder under find command as I think it will treat it differently. Please help me to overcome this issue. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ This e-mail is from the PA Group. For more information, see www.thepagroup.com. This e-mail may contain confidential information. Only the addressee is permitted to read, copy, distribute or otherwise use this email or any attachments. If you have received it in error, please contact the sender immediately. Any opinion expressed in this e-mail is personal to the sender and may not reflect the opinion of the PA Group. Any e-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business practices. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/