diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-09-24 08:04:21 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-09-24 08:04:21 -0700 |
commit | cf6b693d51f1ce4d3b9d0f10387ccad1b1462dd2 (patch) | |
tree | 4e75315165ffea4262160d09a2077ff32eeb2e6f | |
parent | 60d882ce842f5d27cd1a2fb1b8ac0d1ca8362509 (diff) | |
download | txr-cf6b693d51f1ce4d3b9d0f10387ccad1b1462dd2.tar.gz txr-cf6b693d51f1ce4d3b9d0f10387ccad1b1462dd2.tar.bz2 txr-cf6b693d51f1ce4d3b9d0f10387ccad1b1462dd2.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.
-rw-r--r-- | txr.1 | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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: |