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

RE: variable expansion which will remove a file extension



>>>>> "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