Re: recursive copy with spaces in descendants

看板FB_questions作者時間14年前 (2011/11/06 05:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/15 (看更多)
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. _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
文章代碼(AID): #1EjQGFE3 (FB_questions)
討論串 (同標題文章)
文章代碼(AID): #1EjQGFE3 (FB_questions)