Codebase list libmawk / run/a44f9aae-d910-4cd9-a598-4b5026f2a2f5/main src / example_apps / 90_fn_validation / test.awk
run/a44f9aae-d910-4cd9-a598-4b5026f2a2f5/main

Tree @run/a44f9aae-d910-4cd9-a598-4b5026f2a2f5/main (Download .tar.gz)

test.awk @run/a44f9aae-d910-4cd9-a598-4b5026f2a2f5/mainraw · history · blame

BEGIN {
	print "script: BEGIN test.awk"

# this will work with as expected
	getline line < "test.awk"
	print "script: read=" line

# this will be redirected to out.txt instead of "some_file"
	print "hello" > "some_file"

# this won't read the date because it's wrapper in an echo
	"date +%s" | getline line
	print "script: date=" line
}