#!/bin/bash nawk ' BEGIN { print "Content-Type: text/html"; print "\n\n"; print "
"; print ""; print "
$ENV
"
while ( ( getline input < "/dev/stdin" ) > 0 )
{
print "getting input", input, "
";
}
count=split( input, fields, "&" );
print "Number of elements : ", count, "
";
#for ( field in fields )
for ( ndx=1; ndx <= count; ndx++ )
{ print fields[ndx], "
"; }
print "
";
}
{
print NR, $0, "
";
}
END {
print " ";
}' data