Last active
August 28, 2019 20:29
-
-
Save AlexR1712/a29b39f70c153edb9507502743f83812 to your computer and use it in GitHub Desktop.
Rename files based on the modified date, add incremental number to the begining of the filename.
This file contains hidden or 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 -1rt | cat -n | while read n f; do mv -n "$f" "$n""_""$f"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment