On Tue, Sep 28, 2004 at 03:41:16PM +0100, John Allen wrote:
> On Tuesday 28 September 2004 15:34, Tanney, Austin wrote:
> find -name '*.scf' -or -name '*.ab1' | while read x; do cp -vf $x final_folder; done
What if the filename has spaces in it? You can avoid having to use the shell
to read every file (slow), by doing:
find . -name '*.scf' -or -name '*.ab1' -print0 | xargs -0 cp -vf
--target-directory=/some/location
-- Thomas Adam
--
$ source ~/.bash_history
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!