Re:Awk vs. Perl (2009)
by kazinator on Tuesday June 27, 2017 @06:06PM
(#14649966)
Lisp:
How about input from a string stream? At the REPL:
It pays not to have awk be some some canned global behavior enabled by a command line option.
[ Parent
| on HN ]
Another way, without using a quasiliteral: just set the output field separator (ofs) to empty string, and prn:
txr -e '(awk (:set ofs "") ((prn [f 2] ":" [f 0] " " [f 1])))'
This is like: awk -v OFS= '{print $3, ":", $1, " ", $2}'