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

Re: Organising photos into a list (O/T)



    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