File: countnode1

package info (click to toggle)
xmlstarlet 1.6.1-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,472 kB
  • sloc: sh: 4,735; ansic: 4,183; xml: 1,936; makefile: 66; awk: 43
file content (3 lines) | stat: -rwxr-xr-x 133 bytes parent folder | download | duplicates (6)
1
2
3
#!/bin/sh
# Count all nodes in XML document
./xmlstarlet sel -T -t -f -o " " -v "count(//node())" --nl xml/table.xml xml/tab-obj.xml