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 | 1b1c1c570b65c2d218faef7eb6ebb7f0fb3786a6 (patch) | |
tree | 50697e2d3470c19d46ebd96a8e3a78c1bf86a363 | |
parent | 5c7c2a625ab163e665084334f2997eeb574419c7 (diff) | |
download | txr-1b1c1c570b65c2d218faef7eb6ebb7f0fb3786a6.tar.gz txr-1b1c1c570b65c2d218faef7eb6ebb7f0fb3786a6.tar.bz2 txr-1b1c1c570b65c2d218faef7eb6ebb7f0fb3786a6.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 |