Date: Sat, 21 Apr 2001 10:52:05 -0400 (EDT) From: Alexander Kabaev <kabaev@mail.ru> To: Sheldon Hearn <sheldonh@uunet.co.za> Cc: freebsd-current@FreeBSD.ORG, (Jens Schweikhardt) <schweikh@schweikhardt.net>, (Brian Dean) <bsd@bsdhome.com>, "Rodney W. Grimes" <freebsd@gndrsh.dnsmgr.net>, Brian Somers <brian@awfulhak.org> Subject: Re: cp -d dir patch for review (or 'xargs'?) Message-ID: <XFMail.20010421105205.kabaev@mail.ru> In-Reply-To: <93802.987862964@axl.fw.uunet.co.za>
next in thread | previous in thread | raw e-mail | index | archive | help
On 21-Apr-2001 Sheldon Hearn wrote: > > > 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? > It looks like above construct will fail horribly if any of the files in /topdir have names with spaces in them. Think MP3 collections :) > Ciao, > Sheldon. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message ---------------------------------- E-Mail: Alexander Kabaev <kabaev@mail.ru> Date: 21-Apr-2001 Time: 10:49:59 ---------------------------------- 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?XFMail.20010421105205.kabaev>