Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: param modifier to strip _all_ suffixes?
- X-seq: zsh-users 2227
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: param modifier to strip _all_ suffixes?
- Date: Mon, 22 Mar 1999 09:07:28 +0100 (MET)
- In-reply-to: Sweth Chandramouli's message of Sat, 20 Mar 1999 13:50:56 -0500
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
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@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author