Is there a way of telling find to copy a file in the directory where it
finds it?

I'm trying to run   find . -name files.bbs -exec cp {} .messages \;
but this just copies each files.bbs into .message in the directory where
the command is run, rather than the directories where each files.bbs
exists

--
   Terry Collins {:-)}}} Ph(02) 4627 2186 Fax(02) 4628 7861  
   email: [EMAIL PROTECTED]  www: http://www.woa.com.au  
   WOA Computer Services <lan/wan, linux/unix, novell>

 "People without trees are like fish without clean water"

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to