doc: cut: show how to efficiently search ASCII blanks with -w

* doc/coreutils.texi (cut invocation): Mention LC_CTYPE=C
restricts the -w field separator set, and is thus more efficient.
This commit is contained in:
Pádraig Brady committed 2026-08-19 21:09:29 +01:00
1 parent 224673eba8
commit 3abac0e23a
1 file changed
+4
+4
View File
@@ -6258,6 +6258,10 @@ With @option{-f}, separate fields with a run of blank characters
(usually space or TAB). With @samp{trimmed} do not consider
leading and trailing blanks as field separators.
@option{-w} is implied with the @option{-F} option.
Note efficiency of this mode can be improved if the input
fields are separated by runs of only ASCII blank characters (space or TAB).
Even if fields contain arbitrary other characters, you can efficiently
search for ASCII blanks by invoking @command{cut} like @samp{LC_ALL=C cut}.
@optZeroTerminated{cut}