Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Sep 2002 22:16:49 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Peter Leftwich <Hostmaster@Video2Video.Com>
Cc:        FreeBSD Questions LIST <FreeBSD-Questions@FreeBSD.ORG>
Subject:   Re: using xargs to untar
Message-ID:  <20020923031649.GF30383@dan.emsphone.com>
In-Reply-To: <20020922201022.R2138-100000@dhcp-407-32.san.rr.com>
References:  <20020922201022.R2138-100000@dhcp-407-32.san.rr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Sep 22), Peter Leftwich said:
> # 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

try 

  find . -type f | xargs -n 1 tar zxf 
or
  find . -type f -exec tar zxf "{}" ";"


-- 
	Dan Nelson
	dnelson@allantgroup.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020923031649.GF30383>