1
0
mirror of git://git.suckless.org/sbase synced 2024-12-23 15:34:38 +00:00

Adding a manpage for seq(1).

This commit is contained in:
Christoph Lohmann 2012-04-11 18:59:33 +02:00
parent e8d6e30106
commit d512d7938e
2 changed files with 34 additions and 1 deletions

33
seq.1 Normal file
View 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
View File

@ -117,7 +117,7 @@ main(int argc, char *argv[])
ends = argv[optind++];
break;
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]));
}