Adding a manpage for seq(1).
This commit is contained in:
parent
e8d6e30106
commit
d512d7938e
33
seq.1
Normal file
33
seq.1
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
.TH SEQ 1 sbase\-VERSION
|
||||||
|
.SH NAME
|
||||||
|
seq \- print a sequence of numbers
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B seq
|
||||||
|
.RB [ \-w ]
|
||||||
|
.RB [ \-f
|
||||||
|
.IR fmt ]
|
||||||
|
.RB [ \-s
|
||||||
|
.IR separator ]
|
||||||
|
.RI [ start
|
||||||
|
.RI [step] ]
|
||||||
|
.RI end
|
||||||
|
.SH DESCRIPTION
|
||||||
|
.B seq
|
||||||
|
will print numbers from
|
||||||
|
.I START
|
||||||
|
to
|
||||||
|
.I END,
|
||||||
|
in steps of
|
||||||
|
.I STEP.
|
||||||
|
.SH OPTIONS
|
||||||
|
.TP
|
||||||
|
.BI \-f " format"
|
||||||
|
specifies the printf style for the output lines
|
||||||
|
.TP
|
||||||
|
.BI \-s " separator"
|
||||||
|
specifies the separator to print between output lines
|
||||||
|
.TP
|
||||||
|
.BI \-w
|
||||||
|
tells seq to print out lines in equal width
|
||||||
|
.TP
|
||||||
|
|
2
seq.c
2
seq.c
|
@ -117,7 +117,7 @@ main(int argc, char *argv[])
|
||||||
ends = argv[optind++];
|
ends = argv[optind++];
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
eprintf("usage: %s [-f fmt] [-s separator] [-w] [start [step]]"
|
eprintf("usage: %s [-w] [-f fmt] [-s separator] [start [step]]"
|
||||||
" end\n", basename(argv[0]));
|
" end\n", basename(argv[0]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user