summaryrefslogtreecommitdiffhomepage
path: root/src/prj/mmv/examples/number.sh.html
blob: 5e8e74aecb5373a3aa4f4e535e5dac2115091881 (plain) (blame)
1
2
$ <span class="sh-fn">ls</span> <span class="sh-str">'The Fellowship of the Ring.mp4'</span><span class="sh-str">'The Two Towers.mp4'</span> | \
	<span class="sh-fn">mmv</span> awk <span class="sh-str">'{ gsub(" ", "-"); printf "%02d-%s", NR, tolower($0) }'</span>