Terry Collins <[EMAIL PROTECTED]> wrote:

> 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

Untested, but should work:

find . -name file.bbs -printf 'mv %p %h/.messages\n' | sh
-- 
Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

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

Reply via email to