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
eduardo@kalinowski.com.br