Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: variable expansion which will remove a file extension
- X-seq: zsh-users 10041
- From: paul Lew <paullew.at.cisco.dot.com@xxxxxxxxx>
- To: zzapper <david@xxxxxxxxxx>
- Subject: RE: variable expansion which will remove a file extension
- Date: Fri, 17 Mar 2006 16:08:28 -0800
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <Xns9789F2DC127DFzzappergmailcom@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <Xns9789F2DC127DFzzappergmailcom@xxxxxxxxxxx>
>>>>> "zzapper" == zzapper <david@xxxxxxxxxx> writes:
zzapper> Hi, How do I write a variable expansion which will remove
zzapper> a file extension eg fred.tex -> fred
zzapper> This is what I hacked:-
zzapper> zip=${file//\.[[:alnum:]]*/}
$file:r
Messages sorted by:
Reverse Date,
Date,
Thread,
Author