diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-10-14 21:10:06 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-10-14 21:10:06 -0700 |
commit | fd056096bfeaedfead5ad8a64b38b9e057188ad2 (patch) | |
tree | 50697e2d3470c19d46ebd96a8e3a78c1bf86a363 | |
parent | dde754e10fe1d1ac94d3910c1fe8ee8596e3352d (diff) | |
download | txr-fd056096bfeaedfead5ad8a64b38b9e057188ad2.tar.gz txr-fd056096bfeaedfead5ad8a64b38b9e057188ad2.tar.bz2 txr-fd056096bfeaedfead5ad8a64b38b9e057188ad2.zip |
doc: shorten some POSIX awk examples.
* txr.1: Remove unnecessary test for the existence of
a field, since the find function accepts nil.
Use len instead of length.
-rw-r--r-- | txr.1 | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -49741,7 +49741,7 @@ while the fourth one doesn't: Print lines containing a backslash in the second field: .cblk - (awk ((and [f 1] (find #\e\e [f 1])))) + (awk ((find #\e\e [f 1]))) .cble .IP 7. Print lines containing a backslash using a regex constructed @@ -49785,7 +49785,7 @@ by producing a single string first: Print lines longer than 72 characters: .cblk - (awk ((> (length rec) 72))) + (awk ((> (len rec) 72))) .cble .IP 11. Print first two fields in reverse order, separated by |