Created
September 25, 2022 21:21
-
-
Save brunomarks7/2d5b0366c75a3aef4fbc37a211e97c2b to your computer and use it in GitHub Desktop.
Remove webp recursively
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
#!/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