From owner-freebsd-questions Sun Sep 22 20:13: 0 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C47CE37B401 for ; Sun, 22 Sep 2002 20:12:58 -0700 (PDT) Received: from smtp1.san.rr.com (smtp1.san.rr.com [24.25.195.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72EE043E75 for ; Sun, 22 Sep 2002 20:12:58 -0700 (PDT) (envelope-from Hostmaster@Video2Video.Com) Received: from 24-161-168-174.san.rr.com (24-161-168-174.san.rr.com [24.161.168.174]) by smtp1.san.rr.com (8.11.4/8.11.4) with ESMTP id g8N3Cvg00230 for ; Sun, 22 Sep 2002 20:12:58 -0700 (PDT) Date: Sun, 22 Sep 2002 20:13:22 -0700 (PDT) From: Peter Leftwich X-X-Sender: root@dhcp-407-32.san.rr.com To: FreeBSD Questions LIST Subject: using xargs to untar Message-ID: <20020922201022.R2138-100000@dhcp-407-32.san.rr.com> Organization: Video2Video Services - http://Www.Video2Video.Com MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG # ls -al *.tgz -rw-r--r-- 1 root wheel 358995 Sep 22 18:25 z_flash-0.4.10.tgz -rw-r--r-- 1 root wheel 27711 Sep 22 18:35 z_plugger-4.0.tgz -rw-r--r-- 1 root wheel 309395 Sep 22 18:16 z_yelp-1.0.6.tgz # find . -type f ./z_flash-0.4.10.tgz ./z_yelp-1.0.6.tgz ./z_plugger-4.0.tgz # find . -type f | xargs -J G tar zxf G tar: ./z_yelp-1.0.6.tgz not found in archive tar: ./z_plugger-4.0.tgz not found in archive What I am trying to do is the equivalent of the following: # tar zxf file1.tgz ; tar zxf file2.tgz ; tar zxf file3.tgz Is this possible with xargs? I was using "G" as replstr (replace string). Is there something better/smarter to use, now that I am enamoured of the xargs command, which seems to transpose lists of things going down, to lists of things going across (for example, pid's that are one per line become one long line and can be killed via kill `xargs` or the like...? (?) -- Peter Leftwich President & Founder Video2Video Services Box 13692, La Jolla, CA, 92039 USA +1-413-403-9555 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message