On 10/06/2011 10:54 AM, Eduardo M KALINOWSKI wrote:
>
> Something like
>
> rename -n 's/(\d+)/$1+198/e' *.JPG
>
> should do the trick, but note that it might match other files.

That looses the trailing zeroes. Try this:

rename -n 's/(\d+)/sprintf("%05d", $1+198)/e' *.JPG

-- 
poverty, n.:
        An unfortunate state that persists as long
        as anyone lacks anything he would like to have.

Eduardo M KALINOWSKI
[email protected]


-- 
To UNSUBSCRIBE, email to [email protected] 
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to