Codebase list libmawk / a323d5b2-e0eb-4fad-b708-b7817dc988fe/main src / example_apps / 90_fn_validation / test.awk

Tree @a323d5b2-e0eb-4fad-b708-b7817dc988fe/main (Download .tar.gz)

test.awk @a323d5b2-e0eb-4fad-b708-b7817dc988fe/mainraw · history · blame

	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