Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Dec 2006 16:35:33 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Beech Rintoul <beech@alaskaparadise.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Shar question
Message-ID:  <20061213223533.GD79418@dan.emsphone.com>
In-Reply-To: <200612131127.07238.beech@alaskaparadise.com>
References:  <200612131127.07238.beech@alaskaparadise.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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