org-mode/testing/examples/ob-awk-test.org

724 B

a collection of examples for ob-awk tests

Simple tests

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
    }

Input data generators

A code block to generate input stream

(print "1")