[Midnightbsd-cvs] src [8487] trunk/usr.bin/cut: consistently mention columsn and fields
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Sep 18 18:35:39 EDT 2016
Revision: 8487
http://svnweb.midnightbsd.org/src/?rev=8487
Author: laffer1
Date: 2016-09-18 18:35:39 -0400 (Sun, 18 Sep 2016)
Log Message:
-----------
consistently mention columsn and fields
Modified Paths:
--------------
trunk/usr.bin/cut/cut.1
trunk/usr.bin/cut/cut.c
Modified: trunk/usr.bin/cut/cut.1
===================================================================
--- trunk/usr.bin/cut/cut.1 2016-09-18 22:35:17 UTC (rev 8486)
+++ trunk/usr.bin/cut/cut.1 2016-09-18 22:35:39 UTC (rev 8487)
@@ -68,7 +68,7 @@
.Ar list
can be in terms of column position or in terms of fields delimited
by a special character.
-Column numbering starts from 1.
+Column and field numbering start from 1.
.Pp
The
.Ar list
@@ -78,14 +78,14 @@
Number ranges consist of a number, a dash
.Pq Sq \- ,
and a second number
-and select the fields or columns from the first number to the second,
+and select the columns or fields from the first number to the second,
inclusive.
Numbers or number ranges may be preceded by a dash, which selects all
-fields or columns from 1 to the last number.
+columns or fields from 1 to the last number.
Numbers or number ranges may be followed by a dash, which selects all
-fields or columns from the last number to the end of the line.
+columns or fields from the last number to the end of the line.
Numbers and number ranges may be repeated, overlapping, and in any order.
-It is not an error to select fields or columns not present in the
+It is not an error to select columns or fields not present in the
input line.
.Pp
The options are as follows:
Modified: trunk/usr.bin/cut/cut.c
===================================================================
--- trunk/usr.bin/cut/cut.c 2016-09-18 22:35:17 UTC (rev 8486)
+++ trunk/usr.bin/cut/cut.c 2016-09-18 22:35:39 UTC (rev 8487)
@@ -164,7 +164,7 @@
* set a byte in the positions array to indicate if a field or
* column is to be selected; use +1, it's 1-based, not 0-based.
* Numbers and number ranges may be overlapping, repeated, and in
- * any order. We handle "-3-5" although there's no real reason too.
+ * any order. We handle "-3-5" although there's no real reason to.
*/
for (; (p = strsep(&list, ", \t")) != NULL;) {
setautostart = start = stop = 0;
@@ -187,9 +187,9 @@
}
}
if (*p)
- errx(1, "[-cf] list: illegal list value");
+ errx(1, "[-bcf] list: illegal list value");
if (!stop || !start)
- errx(1, "[-cf] list: values may not include zero");
+ errx(1, "[-bcf] list: values may not include zero");
if (maxval < stop) {
maxval = stop;
needpos(maxval + 1);
More information about the Midnightbsd-cvs
mailing list