Author: FRIGN <firstname.lastname@example.org>
Date: Thu, 29 Jan 2015 21:26:09 +0100
Add mandoc-manpage for paste(1)
and mark it as finished in README.
|M||README|| | ||2||+-|
|M||paste.1|| | ||170||+++++++++++++++++++++++--------------------------------------------------------|
2 files changed, 50 insertions(+), 122 deletions(-)
diff --git a/README b/README
@@ -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
@@ -1,122 +1,50 @@
-.TH PASTE 1 paste-VERSION "Apr 2013"
-paste \- merge corresponding or subsequent lines of files
+.Dd January 29, 2015
+.Dt PASTE 1 sbase\-VERSION
+.Nd merge lines of files in parallel or sequentially
+.Op Fl s
+.Op Fl d Ar list
+.Ar file ...
+reads single lines from each
+and writes them into one line, replacing
+except from the last
+.Ar file .
+This process is repeated until each
+is starved, treating zero-reads as empty lines along the way.
+interprets it as stdin.
+.Bl -tag -width Ds
+.It Fl d Ar list
+with escaped characters from
+by cycling through it.
+.It Fl s
+sequentially instead of in parallel.
+.Sh SEE ALSO
+.Xr cut 1
-utility concatenates the corresponding lines of the given input files,
-and writes the resulting lines to standard output. The default operation
-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,
-behaves as though empty lines were read from the files on which
-end-of-file was detected, unless the
-option is specified.
-.B \-d list
-unless a backslash character appears in
-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
-are used circularly; that is, when the
-is exhausted the first element from the list is reused.
-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:
-empty string (not a null character)
-If Any other characters follow the backslash, results are unspecified.
-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
-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 '\-'.
-.SH EXIT VALUES
-utility exits 0 on successful completion, and >0 if an error
-.SH ENVIRONMENT VARIABLES
-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.
-.SH CONFORMING TO
-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.
-.SH SEE ALSO
+utility is compliant with the