[ILUG] Help!

Peter McEvoy pete at yerma.org
Tue Sep 28 16:27:27 IST 2004


On Tue, Sep 28, 2004 at 04:06:32PM +0100, Thomas Adam wrote:
> 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' | ( while read; do cp -vf "$REPLY"
final_folder; done)

Should handle spaces ok.

-- 
Pete



More information about the ILUG mailing list