Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: tar bzip



On Sun, Feb 23, 2003 at 02:41:58AM +0100, Dennis Haney wrote:
> 
> xvzf is in my fingers and I keep forgetting it every time I untar a
> bzip file, so:
> 
> How is it possible to get tar xvzf something.tbz (or
> something.tar.bz2) to convert the z (in xvzf) to a j?

Perhaps, 
    case $2 in
	*.tbz|*.tar.bz2) tar ${1/z/j} $2
    esac

-- 
William Park, Open Geometry Consulting, <opengeometry@xxxxxxxx>
Linux solution for data management and processing. 



Messages sorted by: Reverse Date, Date, Thread, Author