summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-09-24 08:04:21 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-09-24 08:04:21 -0700
commitac5337af5c1f49c0e81296fd743fdad516ed2474 (patch)
tree4e75315165ffea4262160d09a2077ff32eeb2e6f /txr.1
parent377a5875a09abed9ee7a64237f666d838f8bbd01 (diff)
downloadtxr-ac5337af5c1f49c0e81296fd743fdad516ed2474.tar.gz
txr-ac5337af5c1f49c0e81296fd743fdad516ed2474.tar.bz2
txr-ac5337af5c1f49c0e81296fd743fdad516ed2474.zip
doc: take advantage of orec in awk example.
* txr.1: POSIX-derived example 1 can be made to conform to the original with orec.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.17
1 files changed, 7 insertions, 0 deletions
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: