zsh-users
 help / color / mirror / code / Atom feed
* Re: param modifier to strip _all_ suffixes?
@ 1999-03-22  8:07 Sven Wischnowsky
  1999-03-27 20:50 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Sven Wischnowsky @ 1999-03-22  8:07 UTC (permalink / raw)
  To: zsh-users


Sweth Chandramouli wrote:

> 	is there a token modifier like :r that strips _all_ 
> suffixes of the form `.xxx', rather than just the last one--the 
> equivalent of ${PARAM%%.*} instead of just ${PARAM%.*}?  perhaps,
> if there isn't, :R could be given that meaning?

Combine it with `f':

  % a=foo.a.b.c
  % echo $a:fr
  foo


Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 3+ messages in thread
* param modifier to strip _all_ suffixes?
@ 1999-03-20 18:50 Sweth Chandramouli
  0 siblings, 0 replies; 3+ messages in thread
From: Sweth Chandramouli @ 1999-03-20 18:50 UTC (permalink / raw)
  To: ZSH Users

	is there a token modifier like :r that strips _all_ 
suffixes of the form `.xxx', rather than just the last one--the 
equivalent of ${PARAM%%.*} instead of just ${PARAM%.*}?  perhaps,
if there isn't, :R could be given that meaning?

	-- sweth.

-- 
Sweth Chandramouli
IS Coordinator, The George Washington University
<sweth@gwu.edu> / (202) 994 - 8521 (V) / (202) 994 - 0458 (F)
<a href="http://astaroth.nit.gwu.edu/~sweth/disc.html">*</a>


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

end of thread, other threads:[~1999-03-27 20:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-22  8:07 param modifier to strip _all_ suffixes? Sven Wischnowsky
1999-03-27 20:50 ` Bart Schaefer
  -- strict thread matches above, loose matches on Subject: below --
1999-03-20 18:50 Sweth Chandramouli

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