From d512d7938ee31fa440f2470e6ed3b4c2f736b212 Mon Sep 17 00:00:00 2001 From: Christoph Lohmann <20h@r-36.net> Date: Wed, 11 Apr 2012 18:59:33 +0200 Subject: [PATCH] Adding a manpage for seq(1). --- seq.1 | 33 +++++++++++++++++++++++++++++++++ seq.c | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 seq.1 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])); }