Created
August 22, 2019 09:35
-
-
Save manashmandal/635ad5315b1320e5ba1795485fd6ed62 to your computer and use it in GitHub Desktop.
Bash hacks
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
# Change extension of files | |
for f in $(ls); do mv $f $(echo $f | cut -d "." -f 1).jpeg ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for f in $(ls | grep .jpe$); do mv $f $(echo $f | cut -d "." -f 1).jpeg ; done