This one time, at band camp, Raoul Golan said: >That doesn't work. Yeah, I realised this just after I sent it. How about: find . -name 'files.bbs' -print | while read file; do cp $file `dirname $file`/.messages; done Herberts was (as usual) the best answer :) -- jamesw <Jaq> what's wrong with the default? :) <jdub> It is poopie. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
- [SLUG] find -exec cp {} current-directory.messages Terry Collins
- Re: [SLUG] find -exec cp {} current-directory.message... Howard Lowndes
- Re: [SLUG] find -exec cp {} current-directory.message... Michael F.
- Re: [SLUG] find -exec cp {} current-directory.message... Herbert Xu
- Re: [SLUG] find -exec cp {} current-directory.message... Jamie Wilkinson
- Re: [SLUG] find -exec cp {} current-directory.message... Raoul Golan
- Jamie Wilkinson
