Skip to content

Instantly share code, notes, and snippets.

@orenteriab
Created July 27, 2015 14:35
Show Gist options
  • Select an option

  • Save orenteriab/ef6c8593c4ff290dc717 to your computer and use it in GitHub Desktop.

Select an option

Save orenteriab/ef6c8593c4ff290dc717 to your computer and use it in GitHub Desktop.
#!/bin/sh
# For mac it's better to use gsed
# install it from Hombebrew (brew install gnu-sed).
# In case you're using GNU/Linux you can simply use sed.
cat my.xml.file | grep -i markup-tag-to-find | gsed -r 's/<\/?markup-tag-to-find>//g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment