Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 May 2011 12:37:35 +0100
From:      Chris Rees <utisoft@gmail.com>
To:        Modulok <modulok@gmail.com>
Cc:        bf1783@gmail.com, freebsd-questions@freebsd.org
Subject:   Re: Piping find into tar...
Message-ID:  <BANLkTikXanew=uFHVC0ys=Ep97Kn%2BwV1VA@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
On 4 May 2011 10:42, "Modulok" <modulok@gmail.com> wrote:
>
> >> 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?

Pax makes tar by default-- It's a great way to make tars with cpio syntax.

>
> Cheers Everyone!
> -Modulok-



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTikXanew=uFHVC0ys=Ep97Kn%2BwV1VA>