diff --git a/seq.1 b/seq.1 new file mode 100644 index 0000000..9b2a128 --- /dev/null +++ b/seq.1 @@ -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 + diff --git a/seq.c b/seq.c index 4eaad34..7f83b34 100644 --- a/seq.c +++ b/seq.c @@ -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])); }