# Change "ddmm" format to "dd_mm" using variable substitution rename 's/(\d{2})(\d{2}).jpeg/$1_$2.jpeg/' *