narma@linimi:/tmp/aaa$ for i in $(seq 10); do touch Serie.S01E$i.srt; done
narma@linimi:/tmp/aaa$ ls -1
Serie.S01E10.srt
Serie.S01E1.srt
Serie.S01E2.srt
Serie.S01E3.srt
Serie.S01E4.srt
Serie.S01E5.srt
Serie.S01E6.srt
Serie.S01E7.srt
Serie.S01E8.srt
Serie.S01E9.srt
narma@linimi:/tmp/aaa$ rename 's/E([0-9])\./E0$1./' *
narma@linimi:/tmp/aaa$ ls -1
Serie.S01E01.srt
Serie.S01E02.srt
Serie.S01E03.srt
Serie.S01E04.srt
Serie.S01E05.srt
Serie.S01E06.srt
Serie.S01E07.srt
Serie.S01E08.srt
Serie.S01E09.srt
Serie.S01E10.srt
Partager