[hackers] [sbase] Adding a manpage for seq(1). || Christoph Lohmann

From: <hg_AT_suckless.org>
Date: Wed, 11 Apr 2012 18:59:36 +0200 (CEST)

changeset: 104:0a27ae20602a
tag: tip
user: Christoph Lohmann <20h_AT_r-36.net>
date: Wed Apr 11 18:59:33 2012 +0200
files: seq.1 seq.c
description:
Adding a manpage for seq(1).


diff -r 3bd5a649bfcb -r 0a27ae20602a seq.1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/seq.1 Wed Apr 11 18:59:33 2012 +0200
_AT_@ -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 -r 3bd5a649bfcb -r 0a27ae20602a seq.c
--- a/seq.c Tue Apr 10 17:33:19 2012 +0200
+++ b/seq.c Wed Apr 11 18:59:33 2012 +0200
_AT_@ -117,7 +117,7 @@
       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]));
   }
 
Received on Wed Apr 11 2012 - 18:59:36 CEST

This archive was generated by hypermail 2.3.0 : Wed Apr 11 2012 - 19:00:08 CEST