logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git
commit: 6b414d8c17858223bcba256b33b355e61f479e0e
parent 7603bb4fb0cce45bb69d7cec39f3cc11e33bd586
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 12 Sep 2024 03:44:52 +0200

cmd/cut.1: document ranges

Diffstat:

Mcmd/cut.125+++++++++++++++++++++----
1 file changed, 21 insertions(+), 4 deletions(-)

diff --git a/cmd/cut.1 b/cmd/cut.1 @@ -34,11 +34,28 @@ or character-delimited fields .Pp The .Ar list -argument is a comma-separated list of 1-based ranges, where for example -.Ql 1,2,3 -and +argument is a comma-separated list of 1-based ranges, where: +.Bl -tag -width _1_2_3_ +.It Ql n- +Selects from +.Ql n +to the end of line. +.It Ql n +Selects +.Ql n +.It Ql n-m +Selects from +.Ql n +to +.Ql m . +.It Ql -m +Selects from +start of the line to +.Ql m . +.It Ql 1,2,3 +is equivalent to .Ql 1-3 -are equivalents. +.El .Sh OPTIONS .Bl -tag -width _d_delim .It Fl b Ar list