One line of code, what's wrong ?

From: RICHARD BROMBERG (dickbrom_at_worldnet.att.net)
Date: 06/28/05


Date: Tue, 28 Jun 2005 17:02:10 GMT

I am using Knoppix 3.8.2

I am using the following code in a terminal window to copy all files with
the .doc extension from a hard drive to an external USB device.

This was suggested to me at another news group.

$ (cd /mnt/hda1; find . -name '*.doc' | xargs tar cf - ) |
> (cd /mnt/udd1; tar xf - )

I get an error that says :
bash: syntas error near unexpected token '('

Would appreciate any help

Thanks


Quantcast