В линуксе:
rename 's/(\d+)(\..*)$/sprintf("%d-%d%s", ($1+1)>>1, ($1-1)%2+1, $2)/e' *
В виндовсе bat-файлом:
@echo off
setlocal enabledelayedexpansion
for %%f in (*.jpg) do (
set name=%%~nf
set ext=%%~xf
set /a n1="(%name+1)/2"
set /a n2="((%name-1)&1)+1"
rename %%f !n1!-!n2!!ext!
)
endlocal