From owner-freebsd-questions@FreeBSD.ORG Wed May 4 07:25:40 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 6AD8D1065672 for ; Wed, 4 May 2011 07:25:40 +0000 (UTC) (envelope-from modulok@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2DD8C8FC13 for ; Wed, 4 May 2011 07:25:40 +0000 (UTC) Received: by ywf7 with SMTP id 7so388453ywf.13 for ; Wed, 04 May 2011 00:25:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=mJR/AFtMFJtpGJ3B2F/PPKgw9ti4p4dzeqFGU0mglws=; b=NBCbJhXbYjZxNuVIY+/BRnXMAXvv3adrY7RkRlYSh8jKiHgJNQEolo60SUpmWKs12F TAK9dsw6p+ySVM5xN/Yk38a5ZY8C4uj3ygAu7Yd5mglSd25eQQ3e6sk4GjEm4iX3KxzK bhYB3OTaMg8QL1KI8YghCo+/c5mRhXkXnqgGQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=YrSXM9SauInWPNAX4JLO6jnqDg2QuDkmu5C5ms8MtcnqLTFir4iffYEcjMUOpUvTiu X4eAjNKH8OeB6B539TlqtEznlI7cM/V7YQqyyk2rPRFMNgrPWFvVzZgG6BylPJmJdH4Z TDdo3VoSpe9JD/PomxEhVjo1ELCnNmofX+bKg= MIME-Version: 1.0 Received: by 10.101.176.2 with SMTP id d2mr453185anp.155.1304493939473; Wed, 04 May 2011 00:25:39 -0700 (PDT) Received: by 10.101.42.19 with HTTP; Wed, 4 May 2011 00:25:39 -0700 (PDT) Date: Wed, 4 May 2011 01:25:39 -0600 Message-ID: From: Modulok To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1 Subject: 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 07:25:40 -0000 List, I've been playing with the find command lately. Is there a way I can pipe the putput list of files from find, into the tar command to create an archive which contains the files which find lists? I tried the following, but it didn't work (obviously). find -E . '.*\.txt$' -print | tar -cjf result.tgz Thanks! -Modulok-