$ ls 'The Fellowship of the Ring.mp4' … 'The Two Towers.mp4' | \ mmv awk '{ gsub(" ", "-"); printf "%02d-%s", NR, tolower($0) }'