From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3059 invoked from network); 23 Feb 2003 01:52:42 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 23 Feb 2003 01:52:42 -0000 Received: (qmail 8794 invoked by alias); 23 Feb 2003 01:52:19 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5936 Received: (qmail 8786 invoked from network); 23 Feb 2003 01:52:19 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 23 Feb 2003 01:52:19 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [64.56.232.6] by sunsite.dk (MessageWall 1.0.8) with SMTP; 23 Feb 2003 1:52:19 -0000 Received: (from parkw@localhost) by node1.opengeometry.net (8.11.6/8.11.6) id h1N1q8F22144 for zsh-users@sunsite.dk; Sat, 22 Feb 2003 20:52:08 -0500 Date: Sat, 22 Feb 2003 20:52:08 -0500 From: William Park To: zsh-users@sunsite.dk Subject: Re: tar bzip Message-ID: <20030223015208.GA22140@node1.opengeometry.net> Mail-Followup-To: zsh-users@sunsite.dk References: <87lm073h95.fsf@cine.davh.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87lm073h95.fsf@cine.davh.dk> User-Agent: Mutt/1.4i 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, Linux solution for data management and processing.