/usr/share/doc/runawk/examples/demo_readfile is in runawk 1.5.1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #!/usr/bin/env runawk
#use "readfile.awk"
# This demo reads an entire file, stores its content in a variable and
# then print it.
# Input files for this demo: examples/demo_readfile.in*
BEGIN {
if (ARGC != 2){
print "usage: demo_readfile <filename>"
exit 1
}
content = readfile(ARGV [1])
print content
}
|