Rename consecutive files
All in one line:
ls | cat -n | while read n f; do mv "$f" "$n.extension"; done
change extension with desired PNG, Jpg or some-other.
From here
Don't forget to include the
done
command
last updated may 2020
All in one line:
ls | cat -n | while read n f; do mv "$f" "$n.extension"; done
change extension with desired PNG, Jpg or some-other.
From here
Don't forget to include the
done
command