commit d512d7938ee31fa440f2470e6ed3b4c2f736b212
parent e8d6e30106ac0a2d97d5cdfe640e19277bb36648
Author: Christoph Lohmann <20h@r-36.net>
Date: Wed, 11 Apr 2012 18:59:33 +0200
Adding a manpage for seq(1).
Diffstat:
A | seq.1 | | | 33 | +++++++++++++++++++++++++++++++++ |
M | seq.c | | | 2 | +- |
2 files changed, 34 insertions(+), 1 deletion(-)
diff --git a/seq.1 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
@@ -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]));
}