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

Re: Getting rid of temporaries...



    Hi Bart :)

 * Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> dixit:
> } >     print -l *.??.jpg(e['REPLY=${REPLY%.??.jpg}'])
> } Isn't that just the same as:
> }       print -l *.??.jpg(:r:r)
> Yes, it is, but it's harder to generalize the latter to an arbitrary
> name rewrite.  What if there weren't a dot before the number part?

    In this case it's not an issue, since the filenames will always
have that name. The only change may be the number of digits, no more,
no less. There will always be two suffixes: the image type and the
order number.

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/



Messages sorted by: Reverse Date, Date, Thread, Author