Last active
February 22, 2017 18:44
-
-
Save candh/a1ec6f241c506c26872d0cd7697268fd to your computer and use it in GitHub Desktop.
A simple bash script that converts all the files that it founds in a directory that ends with ".jpg-large" to ".jpg". Mainly made because when I download memes from twitter it converts them into .jpg-large and I really hate to convert them to .jpg for usage. It's literally hell when there's a lot of them. Not anymore!
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
#!/bin/bash | |
for i in `ls -a | grep .jpg-large$ | cut -d "." -f 1`; | |
do | |
mv ${i}.jpg-large ${i}.jpg | |
done; | |
echo "Bye 😘" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment