Created
February 28, 2018 21:01
-
-
Save mujahidk/5c8fd4e57986ea8c330ae97bb261cd54 to your computer and use it in GitHub Desktop.
Shell find and rename files
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
| find -type f -name 'dsc*'| awk '{gsub(".xyz","",$1);system("mv "$1".xyz "$1".jpg")}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment