Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
param modifier to strip _all_ suffixes?
- X-seq: zsh-users 2225
- From: Sweth Chandramouli <sweth@xxxxxxxxxxxxxxxxxxxx>
- To: ZSH Users <zsh-users@xxxxxxxxxxxxxx>
- Subject: param modifier to strip _all_ suffixes?
- Date: Sat, 20 Mar 1999 13:50:56 -0500
- Mail-followup-to: ZSH Users <zsh-users@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
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@xxxxxxx> / (202) 994 - 8521 (V) / (202) 994 - 0458 (F)
<a href="http://astaroth.nit.gwu.edu/~sweth/disc.html">*</a>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author