From owner-freebsd-questions@FreeBSD.ORG Wed Dec 13 22:35:54 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 35B2E16A403 for ; Wed, 13 Dec 2006 22:35:54 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3CEE43CBB for ; Wed, 13 Dec 2006 22:34:19 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.6/8.13.8) id kBDMZXCs058643; Wed, 13 Dec 2006 16:35:33 -0600 (CST) (envelope-from dan) Date: Wed, 13 Dec 2006 16:35:33 -0600 From: Dan Nelson To: Beech Rintoul Message-ID: <20061213223533.GD79418@dan.emsphone.com> References: <200612131127.07238.beech@alaskaparadise.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200612131127.07238.beech@alaskaparadise.com> X-OS: FreeBSD 6.2-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.13 (2006-08-11) 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 22:35:54 -0000 In the last episode (Dec 13), Beech Rintoul said: > 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. If you want to get sneaky, you can use bsdtar, since that's one of its supported output formats: tar --format=shar -cvf foo.shar foo -- Dan Nelson dnelson@allantgroup.com