Skip to content

Instantly share code, notes, and snippets.

@brunomarks7
Created September 25, 2022 21:21
Show Gist options
  • Save brunomarks7/2d5b0366c75a3aef4fbc37a211e97c2b to your computer and use it in GitHub Desktop.
Save brunomarks7/2d5b0366c75a3aef4fbc37a211e97c2b to your computer and use it in GitHub Desktop.
Remove webp recursively
#!/bin/bash
CDIR=$(pwd)
for i in $(ls -R | grep :); do
DIR=${i%:}
cd $DIR
rm *.webp
cd $CDIR
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment