Skip to content

Instantly share code, notes, and snippets.

@hiulit
Created February 28, 2018 11:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiulit/7147a984e27dd3f21025c3ecbbdfd684 to your computer and use it in GitHub Desktop.
Save hiulit/7147a984e27dd3f21025c3ecbbdfd684 to your computer and use it in GitHub Desktop.
xmlstarlet delete tag containing certain value
xmlstarlet ed -L -d "/path/to/tag[contains(text(),'some text')]" "path/to/file"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment