#+title: Awk in Org Mode #+index: Awk in Org Mode #+index: Awk in Org Mode #+index: post!2023-01-01 Let's use Awk in Org Mode - No input #+name: Awk 1 #+begin_src awk :exports both { for (i = 0; i < 10; i++) { printf("Line %d\n", i); } } #+end_src #+RESULTS: Awk 1 | Line | 0 | | Line | 1 | | Line | 2 | | Line | 3 | | Line | 4 | | Line | 5 | | Line | 6 | | Line | 7 | | Line | 8 | | Line | 9 | - Input file is the source file of this page #+name: Awk 2 #+begin_src awk :exports both :results file :file 2.txt :in-file post3.org { print $0; } #+end_src #+RESULTS: Awk 2 [[file:2.txt]]