Skip to content

Instantly share code, notes, and snippets.

@silentsudo
Created May 15, 2017 12:27
Show Gist options
  • Save silentsudo/a8a09a53a06c3090e1b9d97b395e3a33 to your computer and use it in GitHub Desktop.
Save silentsudo/a8a09a53a06c3090e1b9d97b395e3a33 to your computer and use it in GitHub Desktop.
Remove xml html tags from Android string file
#!/usr/bin/env bash
for file in app/src/main/res/values/*; do
echo "$file"
filename="${file##*/}"
formatContent="`sed -e 's/<[^>]*>//g' ${file}`"
echo "$formatContent" > ~/Documents/path/to/folder/$filename
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment