Let's say you have 50 files with incorrectly labeled text, but correct numbering. Maybe the file includes special characters that you need removed. This is a bash command to rename the files in ascending order.

ls | cat -n | while read n f; do mv "$f" "$n.extension"; done

© 2017. All Rights Reserved.

Proudly published with Ghost