Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
variable expansion which will remove a file extension
- X-seq: zsh-users 10039
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: variable expansion which will remove a file extension
- Date: Fri, 17 Mar 2006 23:52:28 +0000 (UTC)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: SuccessTheory
- Sender: news <news@xxxxxxxxxxxxx>
Hi,
How do I write a variable expansion which will remove a file extension eg
fred.tex -> fred
This is what I hacked:-
zip=${file//\.[[:alnum:]]*/}
--
http://successtheory.com/ 100 FREE Success and Self-Improvement Tips
Messages sorted by:
Reverse Date,
Date,
Thread,
Author