How to prepend numerical order on filenames by Zsh/AWK/...?
2
votes
2
answers
284
views
I would like to prepend numerical order form 1-777 on the orders given to it.
You can loop it through and increment variable in Bash.
However, I would like to do it with Zsh and/or Awk.
An example follows.
Filenames
IMG_20161215_081850.jpg
IMG_20161215_081851.jpg
IMG_20161215_090559.jpg
IMG_20161215_090601.jpg
IMG_20161215_091308.jpg
Wanted
1.IMG_20161215_081850.jpg
2.IMG_20161215_081851.jpg
3.IMG_20161215_090559.jpg
4.IMG_20161215_090601.jpg
5.IMG_20161215_091308.jpg
OS: Debian 8.5
Asked by Léo Léopold Hertz 준영
(7138 rep)
Dec 23, 2016, 04:44 PM
Last activity: Dec 30, 2016, 01:37 PM
Last activity: Dec 30, 2016, 01:37 PM