[hackers] [sbase] Add mandoc-manpage for paste(1) || FRIGN

From: <git_AT_suckless.org>
Date: Tue, 24 Mar 2015 23:53:20 +0100 (CET)

commit d4e2067d3decf44a915df56475a681b70a623b53
Author: FRIGN <dev_AT_frign.de>
Date: Thu Jan 29 21:26:09 2015 +0100

    Add mandoc-manpage for paste(1)
    and mark it as finished in README.

diff --git a/README b/README
index 82b524b..a2ee3f3 100644
--- a/README
+++ b/README
_AT_@ -49,7 +49,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support,
 =* nice yes none
 = nl no -d, -f, -h, -l, -n, -p, -v, -w
 =* nohup yes none
-# paste yes none
+#* paste yes none
 = printenv non-posix none
    printf stolen stolen
 =* pwd yes none
diff --git a/paste.1 b/paste.1
index fdfd973..7e426bc 100644
--- a/paste.1
+++ b/paste.1
_AT_@ -1,122 +1,50 @@
-.TH PASTE 1 paste-VERSION "Apr 2013"
-paste \- merge corresponding or subsequent lines of files
-.B paste
-.B \-s
-.B \-d
-.I list
-.I file...
+.Dd January 29, 2015
+.Dt PASTE 1 sbase\-VERSION
+.Nm paste
+.Nd merge lines of files in parallel or sequentially
+.Nm paste
+.Op Fl s
+.Op Fl d Ar list
+.Ar file ...
+reads single lines from each
+.Ar file
+and writes them into one line, replacing
+.Sy \en
+.Sy \et
+except from the last
+.Ar file .
+This process is repeated until each
+.Ar file
+is starved, treating zero-reads as empty lines along the way.
+.Ar file
+is '-',
+interprets it as stdin.
+.Bl -tag -width Ds
+.It Fl d Ar list
+.Sy \en
+with escaped characters from
+.Ar list
+by cycling through it.
+.It Fl s
+Read each
+.Ar file
+sequentially instead of in parallel.
+.Xr cut 1
-.B paste
-utility concatenates the corresponding lines of the given input files,
-and writes the resulting lines to standard output. The default operation
-.B paste
-concatenates the corresponding lines of the input files.
-The newline of every line except the line from the last input file is
-replaced with a tab.
-If an end-of-file condition is detected on one or more input files,
-but not all input files,
-.B paste
-behaves as though empty lines were read from the files on which
-end-of-file was detected, unless the
-.B \-s
-option is specified.
-.B \-d list
-unless a backslash character appears in
-.I list
-each character is an element specifying a delimiter.
-If a backslash character appears, that and one or more characters
-following it are an element specifying a delimiter.
-These elements specify one or more characters to use,
-instead of the default tab, to replace the newline of the input
-lines. The elements in
-.I list
-are used circularly; that is, when the
-.I list
-is exhausted the first element from the list is reused.
-When the
-.B \-s
-option is specified, the last newline in a file is not be modified.
-The delimiter is reset to the first element of list after each file
-operand is processed.
-If a backslash character appears in list, it and the character following
-it represents the following delimiters:
-.I \en
-newline character
-.I \et
-tab character
-.I \e\e
-backslash character
-.I \e0
-empty string (not a null character)
-If Any other characters follow the backslash, results are unspecified.
-.B \-s
-concatenate all of the lines of each separate input file in command line
-order. The newline of every line except the last line in each input file
-are replaced with the tab, unless otherwise specified by the
-.B \-d
-If '\-' is specified for one or more input files, the standard input is
-used; standard input is read one line at a time, circularly for each
-instance of '\-'.
-.B paste
-utility exits 0 on successful completion, and >0 if an error
-The following environment variables affect the execution:
-provide a default value for the internationalization variables
-that are unset or null.
-if set to a non-empty string value, override the values of all the
-other internationalization variables.
-determine the locale for the interpretation of sequences of bytes
-of text data as characters (for example, single-byte as opposed to
-multi-byte characters in arguments and input files).
-determine the locale that should be used to affect the format and
-contents of diagnostic messages written to standard error.
-.B paste
-utility is IEEE Std 1003.2 (POSIX.2) compatible.
-.I "ls | paste - - - -"
-Write out a directory in four columns.
-.I "paste -s -d '\et\en' file"
-Combine pairs of lines from a file into single lines.
-Written by Lorenzo Cogotti.
-.BR cut(1)
-.BR lam(1)
+utility is compliant with the
+.St -p1003.1-2008
Received on Tue Mar 24 2015 - 23:53:20 CET

This archive was generated by hypermail 2.3.0 : Wed Mar 25 2015 - 00:04:06 CET