Created
July 29, 2023 22:38
-
-
Save Fallenstedt/ad5ebabef594685bf74485603fc39ff5 to your computer and use it in GitHub Desktop.
Rename files with counter in directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls -v | cat -n | while read n f; do mv -n "$f" "$n.ext"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment