Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

variable expansion which will remove a file extension



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