zsh-users
 help / color / mirror / code / Atom feed
* ${i:r}-question
@ 2005-08-26 16:32 Meino Christian Cramer
  2005-08-27 17:11 ` ${i:r}-question zzapper
  2005-08-27 20:44 ` ${i:r}-question Bart Schaefer
  0 siblings, 2 replies; 7+ messages in thread
From: Meino Christian Cramer @ 2005-08-26 16:32 UTC (permalink / raw)
  To: zsh-users

Hi,

 I am currently wrting a little shell script, which encapsulates the
 new "arepack" addition of atool-0.31.0 (nice tool! use it! :O))).

 The shell script should repack all archives given on the command line
 to *.tar.7z _or_ *.7z archives -- depending on whether the original
 archive was a plain *.bz2 (one file compressed with bzip2) or a
 *.tar.bz2 (tar archive with bzip2 compressed).

 Experimenting with expressions similiar to

			   afile="test.tar.bz2"
			   echo ${afile:e}

 I am wondering, whether it would possible to strip off more than one
 "instance" of extension ("tar.bz2" instead of "bz2") from "$afile"
 without using somthing like

			   echo ${${afile:e}}

 since this would depends on knowing whether it is a *.bz2 or a
 *.tar.bz2 archive before evaluating the expression, which reveals
 exactly this information...... :)

 Thank you very much in advance for any help and enlightment ! ;O)))

 Have a nice weekend !
 Meino


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-08-28  5:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` ${i:r}-question Bart Schaefer
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

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).