Created
January 20, 2014 09:57
-
-
Save mbijon/8517635 to your computer and use it in GitHub Desktop.
Regnerate avatar thumbnails in BuddyPress
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
# From: /wp-content/uploads/group-avatars | |
find . -type f -name '*.jpg' -print0 | while IFS= read -r -d '' f; do | |
mv -- "$f" "${f%.jpg}.png" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
how/where do I execute this script?
Thanks