# Something.awsome.S01E01.blah.smi to S01E01.smi or srt rename 's/.*(S\d+E\d+).*(s[mr][it])$/$1.$2/g' *.s?? # Something.awsome.S01E01.blah.avi to S01E01.avi rename 's/.*(S\d+E\d+).*$/$1.avi/g' *.avi
find -name '*.jpg' | gawk 'BEGIN{ a=1 }{ printf "mv \"%s\" %03d.jpg\n", $0, a++ }' | bash # 혹은 ls *.mkv | gawk 'BEGIN { a = 1 } { printf "mv \"%s\" %03d.mkv\n", $0, a++ }' | bash
for f in * ; do mv "$f" "PRE_$f" ; done
sudo apt install renameutils
qmv
실행하고 편집