Skip to content

Instantly share code, notes, and snippets.

@cfaria
Created September 16, 2013 13:28
Show Gist options
  • Save cfaria/6580681 to your computer and use it in GitHub Desktop.
Save cfaria/6580681 to your computer and use it in GitHub Desktop.
Extract tags content from XML
sed -n 's/.*<foo>\([^<]*\)<\/foo>.*/\1/p' filename.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment