Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Apr 2001 16:22:44 +0200
From:      Sheldon Hearn <sheldonh@uunet.co.za>
To:        Brian Somers <brian@awfulhak.org>
Cc:        "Rodney W. Grimes" <freebsd@gndrsh.dnsmgr.net>, bsd@bsdhome.com (Brian Dean), schweikh@schweikhardt.net (Jens Schweikhardt), freebsd-current@freebsd.org
Subject:   Re: cp -d dir patch for review (or 'xargs'?) 
Message-ID:  <93802.987862964@axl.fw.uunet.co.za>
In-Reply-To: Your message of "Sat, 21 Apr 2001 14:06:04 %2B0100." <200104211306.f3LD64543456@hak.lan.Awfulhak.org> 

next in thread | previous in thread | raw e-mail | index | archive | help


On Sat, 21 Apr 2001 14:06:04 +0100, Brian Somers wrote:

> How do you do this in a script:
> 
>   cd /topdir; find . -type f | xargs -i {} cp {} /otherdir/.

for i in `find /path/to/source -type f`; do
	cp $i /path/to/dest/
done

What's all the fuss about?

Ciao,
Sheldon.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?93802.987862964>