Skip to content

Instantly share code, notes, and snippets.

@candh
Last active February 22, 2017 18:44
Show Gist options
  • Save candh/a1ec6f241c506c26872d0cd7697268fd to your computer and use it in GitHub Desktop.
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!
#!/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