From cf6b693d51f1ce4d3b9d0f10387ccad1b1462dd2 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 24 Sep 2016 08:04:21 -0700 Subject: doc: take advantage of orec in awk example. * txr.1: POSIX-derived example 1 can be made to conform to the original with orec. --- txr.1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/txr.1 b/txr.1 index fef7e0a4..25468b0b 100644 --- a/txr.1 +++ b/txr.1 @@ -39171,7 +39171,14 @@ utility given in IEEE Std 1003.1, 2013 Edition. Print lines for which field 3 is greater than 5: .cblk + ;; print lines with fields separated by ofs, + ;; and [f 2] converted to integer: (awk ((and [f 2] (fconv - - iz) (> [f 2] 5)))) + + ;; print strictly original lines from orec + (awk ((and [f 2] (fconv - - iz) (> [f 2] 5)) + (prn orec))) + .cble .IP 2. Print every tenth line: -- cgit v1.2.3