From owner-freebsd-questions@FreeBSD.ORG Wed Dec 13 20:46:35 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EC5B916A403 for ; Wed, 13 Dec 2006 20:46:35 +0000 (UTC) (envelope-from beech@alaskaparadise.com) Received: from stargate.alaskaparadise.com (114-103-74-65.gci.net [65.74.103.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D39043C9E for ; Wed, 13 Dec 2006 20:45:04 +0000 (GMT) (envelope-from beech@alaskaparadise.com) Received: by stargate.alaskaparadise.com (Postfix, from userid 0) id 4BBB845D5; Wed, 13 Dec 2006 11:46:34 -0900 (AKST) From: Beech Rintoul Organization: Alaska Paradise Travel To: Bill Moran Date: Wed, 13 Dec 2006 11:46:30 -0900 User-Agent: KMail/1.9.4 References: <200612131127.07238.beech@alaskaparadise.com> <20061213153826.ddff57be.wmoran@collaborativefusion.com> In-Reply-To: <20061213153826.ddff57be.wmoran@collaborativefusion.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3017683.VXOCursPjo"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200612131146.32653.beech@alaskaparadise.com> Cc: freebsd-questions@freebsd.org Subject: Re: Shar question 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, 13 Dec 2006 20:46:36 -0000 --nextPart3017683.VXOCursPjo Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 13 December 2006 11:38, Bill Moran wrote: > In response to Beech Rintoul : > > I'm trying to learn how to use shar. I've read the manual. > > > > If I pass a directory to shar: > > > > shar foo > foo.shar > > > > Results in a shar file. Problem is that when I unpack it I just end up > > with an empty directory. I probably need to pass it a flag or something, > > but I'm not sure which one to use. > > > > How do I make a shar file out of a directory and ALL it's contents. > > shar needs to know all the files it's to put into the archive, it > doesn't walk the tree for you. > > Thus you could do: > share file1.txt file2.txt file3.txt > archive.shar > to selectively grab only the specified files. > > When grabbing an entire directory tree, you can use the syntax: > share `find \start\of\directory\tree -print` > archive.shar > > which is hinted at in the man page. The backticks cause the find > command to be executed, and the output of find is given to shar. OK, now I understand. The manual was a bit unclear on that. Thanks, Beech =2D-=20 =2D------------------------------------------------------------------------= =2D------------- Beech Rintoul - Sys. Administrator - beech@alaskaparadise.com /"\ ASCII Ribbon Campaign | Alaska Paradise Travel \ / - NO HTML/RTF in e-mail | 201 East 9Th Avenue Ste.310 X - NO Word docs in e-mail | Anchorage, AK 99501 / \ - Please visit Alaska Paradise - http://www.alaskaparadise.com =2D------------------------------------------------------------------------= =2D------------- --nextPart3017683.VXOCursPjo Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQBFgGaop5D0B1NlT4URAi1bAJ9JDyyXGl5FnlcCImj6h9Uu29A4jgCghbZN hCbTH0Ch0crTwegZaT5rNvc= =G9BD -----END PGP SIGNATURE----- --nextPart3017683.VXOCursPjo--