File: delete1

package info (click to toggle)
xmlstarlet 1.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,504 kB
  • sloc: sh: 4,313; ansic: 4,268; xml: 1,886; makefile: 56
file content (3 lines) | stat: -rwxr-xr-x 111 bytes parent folder | download
1
2
3
#!/bin/sh
# Delete elements matching XPath expression
./xmlstarlet ed -d /xml/table/rec[@id='2'] xml/table.xml