Skip to content

Instantly share code, notes, and snippets.

@db0company
Created February 3, 2017 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save db0company/6e410cab6f8ee5fc16f8b08c484f302a to your computer and use it in GitHub Desktop.
Save db0company/6e410cab6f8ee5fc16f8b08c484f302a to your computer and use it in GitHub Desktop.
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