From owner-freebsd-questions@FreeBSD.ORG Wed May 4 09:42:46 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 388211065672 for ; Wed, 4 May 2011 09:42:46 +0000 (UTC) (envelope-from modulok@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id E84638FC0A for ; Wed, 4 May 2011 09:42:45 +0000 (UTC) Received: by gyg13 with SMTP id 13so414551gyg.13 for ; Wed, 04 May 2011 02:42:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=kvAcLy/xyLxYa4+6FqNNXvnc+GAhiI1VXfXCp+dxvnA=; b=KqLbnLkibrp++T+a0/Zd/xPqmDYLvUA18+jvVhM9Q8laLlpRCZynTO7mForqJ7q1T7 sJmjHps2u0HFcoY0sx2A7k883vHNjKQ0qITfEeKD+tWcydEl20xGZsx58Uk5WeDvTuj2 3ruiU4gCh2QZv6BfDNKseggZHcJlZFubr+wXs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Pq2PLTLRemISkEQBHObRSTgvoiMgxL0Re2tH00v9eRZZBMTdR4As/KkfDzZP+VDeb8 9s9+K+7806Vo8YOkO38hUo1G5HZPLPZm7c6J0Qpa0DZtxr0/Y82Tchso7Gw0WO03rQyQ UKECldFYYiU71h7n8WqCSt9surURWs1oxIz/g= MIME-Version: 1.0 Received: by 10.101.108.14 with SMTP id k14mr559402anm.89.1304502165006; Wed, 04 May 2011 02:42:45 -0700 (PDT) Received: by 10.101.42.19 with HTTP; Wed, 4 May 2011 02:42:44 -0700 (PDT) In-Reply-To: References: Date: Wed, 4 May 2011 03:42:44 -0600 Message-ID: From: Modulok To: bf1783@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org, utisoft@gmail.com Subject: Re: Piping find into tar... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2011 09:42:46 -0000 >> 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-