File: bigxml

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 (17 lines) | stat: -rwxr-xr-x 364 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# check error messages on lines past 2^16

SEDLINUM_PROG='s/^\([^:][^:]*:[0-9]\{4\}\)[0-9]\.[0-9][0-9]*:.*$/\1x/p'

xmldoc()
{
    BAD="$1"
    DOCTYPE="$2"

    echo '<?xml version="1.0"?>'
    [ -n "$DOCTYPE" ] && echo "$DOCTYPE"
    echo '<root>'
    awk 'BEGIN{for(i=0; i < 69999; i++) print "<a/>"}' < /dev/null
    echo "$BAD"
    echo '</root>'
}