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

Re: pad numbers



One way to 0-pad the numbers 01..99 without touching the 100..NNN files
is to use zmv:

autoload zmv
noglob zmv -W ?? 0??

I like the zmv -W command so much I make it simpler by having this in
my .zshrc:

autoload zmv
alias mmv='noglob zmv -W'

That way I can do the above will this trivial command:

mmv ?? 0??

..wayne..



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