Please enable JavaScript.
Coggle requires JavaScript to display documents.
awk (commands (BEGIN {...} (execute before reading file/stdin), END {...}…
awk
-
syntax
-
-
executable awk program
-
#! will find the interpreter, /bin/awk
-
-
do not use quotes, use escape sequence
" -> \42
' -> \47
can apply multiple rules as or,
one rule per line
-
each input line will execute all the rules,
hence can give duplicated output lines
allow multi-line rule with:
, { ? : || && do else \
-
-
-