ob-awk-test.org 827 B

Simple tests

:PROPERTIES: :ID: 9e998b2a-3581-43fe-b26d-07d3c507b86a :END: Run without input stream

BEGIN { print 42 }

Use a code block ouput as an input

{ print 42+$1 }

Use input file

$0~/[\t]*#/{ # skip comments next } { print $1*10 }

a b c

BEGIN{ print a; }

Input data generators

A code block to generate input stream

(print "1")