Date: Sat, 05 Nov 2011 16:33:03 -0400 From: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> To: Michael Sierchio <kudzu@tenebras.com> Cc: Chris <cpuburner@gmail.com>, freebsd-questions@freebsd.org Subject: Re: recursive copy with spaces in descendants Message-ID: <44d3d6paww.fsf@lowell-desk.lan> In-Reply-To: <CAHu1Y72KKXkTca69QsqNLj44BgMOEmMNVERA5VCv1d-4MfU7VA@mail.gmail.com> (Michael Sierchio's message of "Sat, 5 Nov 2011 13:23:02 -0700") References: <CAKFHi=_W_sC-agEEpq%2Bco9MvvqBt1Ee3W8VEtL-sKwkYa-7yAg@mail.gmail.com> <CAHu1Y72KKXkTca69QsqNLj44BgMOEmMNVERA5VCv1d-4MfU7VA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Michael Sierchio <kudzu@tenebras.com> writes: > I just use tar for this. > > ( cd /path/to/src ; tar cf - . ) | ( cd /path/to/obj ; tar xf - ) I was going to launch into an explanation of shell quoting, but come to think of it, tar is how I do this too. > On Sat, Nov 5, 2011 at 12:47 PM, Chris <cpuburner@gmail.com> wrote: >> I'm having difficulty copying a directory tree from my FreeBSD server to >> USB storage. The problem is that the tree contains file and folder names >> which have spaces, similar to the following: >> >> ./foo bar/some name.tar.gz >> ./foo bar/child dir/some other name.tar.gz I think: cp foo\ bar/some\ name.tar.gz some_other_path/. will work for all shells.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44d3d6paww.fsf>