/usr/share/doc/runawk/examples/demo_ini 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 19 | #!/usr/bin/env runawk
#use "exitnow.awk"
#use "ini.awk"
#use "sort.awk"
BEGIN {
sep = ARGV [1]
for (i=2; i < ARGC; ++i){
read_inifile(ARGV [i], array, sep)
cnt = sort_indices(array, remap)
for (j = 1; j <= cnt; ++j){
printf "value [%s]=%s\n", remap [j], array [remap [j]]
}
}
exitnow(0)
}
|