Skip to content

Instantly share code, notes, and snippets.

@IQAndreas
Created May 31, 2014 03:46
Show Gist options
  • Save IQAndreas/c4a24c083acf68dabb13 to your computer and use it in GitHub Desktop.
Save IQAndreas/c4a24c083acf68dabb13 to your computer and use it in GitHub Desktop.
Replace HTML entities with the actual unicode characters with Bash
# There are more, but these were all I needed for the current project
sed -i 's/“/“/g' *.md
sed -i 's/”/”/g' *.md
sed -i 's/©/©/g' *.md
# Check if we have any HTML entities remaining (requires some manual filtering by eye)
grep '&' *.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment