Last active
April 11, 2021 14:25
-
-
Save flee2free/367ec6193df796e650f23248b5007853 to your computer and use it in GitHub Desktop.
[Terminal File Rename] Renaming files in sequece using numeric sort #bash
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 | sort -n | rename -n 's/.+/our $i; sprintf("%02d.jpeg", 1+$i++)/e' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment