zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@sunsite.dk
Subject: Re: ${i:r}-question
Date: Sat, 27 Aug 2005 20:44:40 +0000	[thread overview]
Message-ID: <1050827204440.ZM11639@candle.brasslantern.com> (raw)
In-Reply-To: <20050826.183216.75189062.Meino.Cramer@gmx.de>

On Aug 26,  6:32pm, Meino Christian Cramer wrote:
} 
}  I am currently wrting a little shell script, which encapsulates the
}  new "arepack" addition of atool-0.31.0 (nice tool! use it! :O))).

I'm glad you answered zzapper's question because I was scratching my
head over why it made a difference if the bzip'd file was also tar'd.
 
}  I am wondering, whether it would possible to strip off more than one
}  "instance" of extension ("tar.bz2" instead of "bz2") from "$afile"

You mean e.g. ${${(M)afile%%(.tar|).(7z|bz2|gz)}#.} except that you
don't want to have to enumerate (7z|bz2|gz)?  Otherwise I'm not clear
on the question.

Incidentally if it's important to know about the "tar" part, then have
you considered what to do with e.g. ".tgz" files?


  parent reply	other threads:[~2005-08-27 20:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-26 16:32 ${i:r}-question Meino Christian Cramer
2005-08-27 17:11 ` ${i:r}-question zzapper
2005-08-27 17:41   ` ${i:r}-question Meino Christian Cramer
2005-08-27 20:44 ` Bart Schaefer [this message]
2005-08-28  0:55   ` ${i:r}-question Meino Christian Cramer
2005-08-28  3:07     ` ${i:r}-question Bart Schaefer
2005-08-28  5:12       ` ${i:r}-question Meino Christian Cramer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1050827204440.ZM11639@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).