Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: pad numbers
- X-seq: zsh-users 13451
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- To: fREW Schmidt <frioux@xxxxxxxxx>
- Subject: Re: pad numbers
- Date: Sat, 15 Nov 2008 10:33:38 -0800
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <fb3648c60811151008m68a8125jbe0db623500516ee@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <fb3648c60811151008m68a8125jbe0db623500516ee@xxxxxxxxxxxxxx>
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