Created
February 3, 2017 04:45
-
-
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.
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
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