File: ed-subnode

package info (click to toggle)
xmlstarlet 1.6.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,476 kB
  • sloc: sh: 4,735; ansic: 4,183; xml: 1,936; makefile: 66; awk: 43
file content (2 lines) | stat: -rwxr-xr-x 94 bytes parent folder | download | duplicates (7)
1
2
#!/bin/sh
./xmlstarlet ed -s '/xml/table/rec[@id=1]' -t elem -n newrec -v value xml/table.xml