Skip to content

Instantly share code, notes, and snippets.

@gmas
Last active August 29, 2015 14:13
Show Gist options
  • Save gmas/683b965939e65ae77a9a to your computer and use it in GitHub Desktop.
Save gmas/683b965939e65ae77a9a to your computer and use it in GitHub Desktop.
read text between tags
#read text betweeen <ca> tags
#The -n option means don't print by default;
# then print between the line containing <ca> and </ca>
sed -n "/<ca>/,/<\/ca>/p"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment