From owner-freebsd-questions@FreeBSD.ORG Wed May 4 11:45:11 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41C161065688 for ; Wed, 4 May 2011 11:45:11 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id E94B78FC0C for ; Wed, 4 May 2011 11:45:09 +0000 (UTC) Received: by bwz12 with SMTP id 12so1275301bwz.13 for ; Wed, 04 May 2011 04:45:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:date:message-id:subject :from:to:cc:content-type; bh=hlmZwfa9Cms7FFdwYsM6Ue8QqlNIf5DIHrfuy2DIh8g=; b=sSeY5XfIV2mebqxAf9KMEEct3HRCbMKENVNZx9KR9SeAyMcCjaDMqZgV1EWDUzvQSz n/thdXtNeLrA7PJsmgeirl03O4CylumQrHeQA1wdxemP507iDpVxnBp6Ov7gOWDKBtFp nOuWa09M2JPeCH/m5fya0z0tRBjzmZWX86aqM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:cc :content-type; b=BmHxCbW3C6YyvI8nXl2EcFO+cKVHBVlsU4vmtciCO8ADweOOJjRCal7pT9zQGaklIu pZ0FUidMf/ezsqiQOTPK3I1kqHwGIMsJE1uVkZMqbrMGtmBryM97LAw/IoX5gGOa9D8S h+wM1h0ICkBavIl9HFSRyKhhlAc9f132tHgx8= MIME-Version: 1.0 Received: by 10.204.74.11 with SMTP id s11mr126831bkj.43.1304509055982; Wed, 04 May 2011 04:37:35 -0700 (PDT) Received: by 10.204.42.21 with HTTP; Wed, 4 May 2011 04:37:35 -0700 (PDT) Received: by 10.204.42.21 with HTTP; Wed, 4 May 2011 04:37:35 -0700 (PDT) Date: Wed, 4 May 2011 12:37:35 +0100 Message-ID: From: Chris Rees To: Modulok Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: bf1783@gmail.com, freebsd-questions@freebsd.org Subject: Re: Piping find into tar... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: utisoft@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2011 11:45:11 -0000 On 4 May 2011 10:42, "Modulok" 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-