Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Organising photos into a list (O/T)
- X-seq: zsh-users 11251
- From: DervishD <zsh@xxxxxxxxxxxx>
- To: zzapper <david@xxxxxxxxxx>
- Subject: Re: Organising photos into a list (O/T)
- Date: Fri, 9 Mar 2007 13:37:55 +0100
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <Xns98EE6824D7FF6zzappergmailcom@xxxxxxxxxxx>
- Mail-followup-to: zzapper <david@xxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: DervishD
- References: <Xns98EE6824D7FF6zzappergmailcom@xxxxxxxxxxx>
Hi zzapper :)
* zzapper <david@xxxxxxxxxx> dixit:
> I needed to organise about 60 images into a numerical list.
I do more or less the same using this:
COUNTER=0 for photo in *.jpg
do
mv $photo ${(l:4::0:)$(( ++COUNTER ))}.jpg
done
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!
Messages sorted by:
Reverse Date,
Date,
Thread,
Author