Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
When you save images from Twitter desktop, they get saved as .png-large or .jpg-large. This script removes the -large so the files are recognized as images.
for img in `ls *-large`; do newimg=`echo $img | rev | cut -d'-' -f2- | rev`; echo $newimg; mv $img $newimg; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.