zsh-users
 help / color / mirror / code / Atom feed
* variable expansion which will remove a file extension
@ 2006-03-17 23:52 zzapper
  2006-03-18  0:03 ` Dominic Mitchell
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: zzapper @ 2006-03-17 23:52 UTC (permalink / raw)
  To: zsh-users

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


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

end of thread, other threads:[~2006-03-18  0:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-17 23:52 variable expansion which will remove a file extension zzapper
2006-03-18  0:03 ` Dominic Mitchell
2006-03-18  0:08 ` paul Lew
2006-03-18  0:23 ` Bart Schaefer
2006-03-18  0:43   ` zzapper
2006-03-18  0:42 ` Christian Schneider

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