Date: Wed, 4 May 2011 03:42:44 -0600 From: Modulok <modulok@gmail.com> To: bf1783@gmail.com Cc: freebsd-questions@freebsd.org, utisoft@gmail.com Subject: Re: Piping find into tar... Message-ID: <BANLkTikuSZLCJ4tbvqnJ22_PYZ8=DnEE=w@mail.gmail.com> In-Reply-To: <BANLkTike2NRiY33p1epo0hiz_SbgvGma6g@mail.gmail.com> References: <BANLkTi=-90CJk41um5A3J-iSEVUCv1Viqg@mail.gmail.com> <BANLkTikxNouAi7SQ0xEEK%2BjGFZzRH=r3TQ@mail.gmail.com> <BANLkTike2NRiY33p1epo0hiz_SbgvGma6g@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>> By the way, in reference to the commands above the -j option is for bzip2, so the extension should be .tbz o_O Thanks everyone! I went with the following, because it works regardless of space characters in filenames. (Thanks for the correction on the extenion. It should indeed be 'tbz' when using the 'j' flag.) find -E . -regex '.*\.txt$' -print0 | xargs -0 tar -cjf result.tbz As for pax, I thought tar could create pax archives too, via the --format pax option? Cheers Everyone! -Modulok-
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTikuSZLCJ4tbvqnJ22_PYZ8=DnEE=w>