On Sat, 21 Apr 2001 10:52:05 -0400, Alexander Kabaev wrote:

> > 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 :)

Your comments have nothing to do with the issue at hand.  Just wrap the
first argument to cp in double-quotes, i.e.

        cp "$i"

The point is, why bastardize tools to cope with areas beyond their
focus and well within the focus of other tools?


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to