Skip to content

Instantly share code, notes, and snippets.

@felipefinhane
Created September 9, 2022 15:08
Show Gist options
  • Save felipefinhane/539834c7137cbf1d9c76aab91d796494 to your computer and use it in GitHub Desktop.
Save felipefinhane/539834c7137cbf1d9c76aab91d796494 to your computer and use it in GitHub Desktop.
#!/bin/bash
for file in `ls *.webp`
do
newfile=`echo $file | sed 's/webp/jpg/'`
convert $file $newfile
done
for file in `ls *.jfif`
do
newfile=`echo $file | sed 's/jfif/jpg/'`
convert $file $newfile
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment