Index: head/sysutils/moreutils/Makefile =================================================================== --- head/sysutils/moreutils/Makefile (revision 483915) +++ head/sysutils/moreutils/Makefile (revision 483916) @@ -1,75 +1,77 @@ # Created by: Charlie Kester # $FreeBSD$ PORTNAME= moreutils PORTVERSION= 0.62 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= https://git.joeyh.name/index.cgi/moreutils.git/snapshot/ \ LOCAL/sunpoet MAINTAINER= sunpoet@FreeBSD.org COMMENT= Additional Unix utilities LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING RUN_DEPENDS= p5-IPC-Run>=0:devel/p5-IPC-Run OPTIONS_DEFINE= MANPAGES OPTIONS_DEFAULT=MANPAGES OPTIONS_SUB= yes +USES= gmake perl5 shebangfix + ALL_TARGET= errnos.h ${CANNED_MANPAGES:R} MAKE_JOBS_UNSAFE= yes -USES= gmake perl5 shebangfix CANNED_MANPAGES=errno.1 \ ifdata.1 \ ifne.1 \ isutf8.1 \ lckdo.1 \ mispipe.1 \ moreutils-parallel.1 \ pee.1 \ sponge.1 PERL_MANPAGES= chronic.1 \ combine.1 \ moreutils-ts.1 \ vidir.1 \ vipe.1 \ zrun.1 SHEBANG_FILES= ${PERL_MANPAGES:R} post-extract: .for file in parallel.c parallel.docbook ts @${MV} ${WRKSRC}/${file} ${WRKSRC}/moreutils-${file} .endfor post-patch: @${REINPLACE_CMD} -e 's|parallel|moreutils-&|g' ${WRKSRC}/Makefile @${REINPLACE_CMD} -e 's|__APPLE__|__${OPSYS}__|' ${WRKSRC}/ifdata.c @${REINPLACE_CMD} -e '/^CC = gcc/d' ${WRKSRC}/is_utf8/Makefile @cd ${FILESDIR}/ && ${CP} ${CANNED_MANPAGES} ${WRKSRC}/ post-build: .for man in ${PERL_MANPAGES:R} ${LOCALBASE}/bin/pod2man --center=" " --release="${PORTNAME}" ${WRKSRC}/${man} > ${WRKSRC}/${man}.1 .endfor do-install: cd ${WRKSRC}/ && ${INSTALL_PROGRAM} ${CANNED_MANPAGES:R} ${STAGEDIR}${PREFIX}/bin/ cd ${WRKSRC}/ && ${INSTALL_SCRIPT} ${PERL_MANPAGES:R} ${STAGEDIR}${PREFIX}/bin/ cd ${WRKSRC}/ && ${INSTALL_MAN} ${CANNED_MANPAGES} ${PERL_MANPAGES} ${STAGEDIR}${PREFIX}/man/man1/ # maintainer section: # require: docbook-xsl, libxml2, libxslt updateman: do-clean extract .for man in ${CANNED_MANPAGES:R} ${LOCALBASE}/bin/xmllint --noout --valid ${WRKSRC}/${man}.docbook && \ ${LOCALBASE}/bin/xsltproc --output ${FILESDIR}/${man}.1 --param man.authors.section.enabled 0 ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl ${WRKSRC}/${man}.docbook .endfor ${MV} ${FILESDIR}/parallel.1 ${FILESDIR}/moreutils-parallel.1 .include Index: head/sysutils/moreutils/files/errno.1 =================================================================== --- head/sysutils/moreutils/files/errno.1 (revision 483915) +++ head/sysutils/moreutils/files/errno.1 (revision 483916) @@ -1,72 +1,71 @@ '\" t .\" Title: errno .\" Author: Lars Wirzenius -.\" Generator: DocBook XSL Stylesheets v1.76.1 +.\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 2012-06-05 .\" Manual: moreutils .\" Source: moreutils .\" Language: English .\" .TH "ERRNO" "1" "2012\-06\-05" "moreutils" "moreutils" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" errno \- look up errno names and descriptions .SH "SYNOPSIS" .HP \w'\fBerrno\fR\ 'u \fBerrno\fR {\fIname\-or\-code\fR} .HP \w'\fBerrno\fR\ 'u \fBerrno\fR [\-ls] [\-\-list] .HP \w'\fBerrno\fR\ 'u \fBerrno\fR [\-s] [\-\-search] {\fIword\fR} .HP \w'\fBerrno\fR\ 'u \fBerrno\fR [\-S] [\-\-search\-all\-locales] {\fIword\fR} .SH "DESCRIPTION" .PP \fBerrno\fR looks up errno macro names, errno codes, and the corresponding descriptions\&. For example, if given ENOENT on a Linux system, it prints out the code 2 and the description "No such file or directory"\&. If given the code 2, it prints ENOENT and the same description\&. .SH "OPTIONS" .PP \fB\-l\fR, \fB\-\-list\fR .RS 4 List all errno values\&. .RE .PP \fB\-s\fR, \fB\-\-search\fR .RS 4 Search for errors whose description contains all the given words (case\-insensitive)\&. .RE .PP \fB\-S\fR, \fB\-\-search\-all\-locales\fR .RS 4 Like \fB\-\-search\fR, but searches all installed locales\&. .RE .SH "AUTHOR" .PP Lars Wirzenius .SH "SEE ALSO" .PP - \fBerrno\fR(3) Index: head/sysutils/moreutils/files/ifdata.1 =================================================================== --- head/sysutils/moreutils/files/ifdata.1 (revision 483915) +++ head/sysutils/moreutils/files/ifdata.1 (revision 483916) @@ -1,200 +1,199 @@ '\" t .\" Title: ifdata .\" Author: Joey Hess -.\" Generator: DocBook XSL Stylesheets v1.76.1 +.\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 2006-03-07 .\" Manual: moreutils .\" Source: moreutils .\" Language: English .\" .TH "IFDATA" "1" "2006\-03\-07" "moreutils" "moreutils" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ifdata \- get network interface info without parsing ifconfig output .SH "SYNOPSIS" .HP \w'\fBifdata\fR\ 'u \fBifdata\fR [options] {\fIiface\fR} .SH "DESCRIPTION" .PP - \fBifdata\fR can be used to check for the existence of a network interface, or to get information abut the interface, such as its IP address\&. Unlike \fBifconfig\fR or \fBip\fR, \fBifdata\fR has simple to parse output that is designed to be easily used by a shell script\&. .SH "OPTIONS" .PP \fB\-h\fR .RS 4 Print out a help summary\&. .RE .PP \fB\-e\fR .RS 4 Test to see if the interface exists, exit nonzero if it does not\&. .RE .PP \fB\-p\fR .RS 4 Prints out the whole configuration of the interface\&. .RE .PP \fB\-pe\fR .RS 4 Prints "yes" or "no" if the interface exists or not\&. .RE .PP \fB\-pa\fR .RS 4 Prints the IPv4 address of the interface\&. .RE .PP \fB\-pn\fR .RS 4 Prints the netmask of the interface\&. .RE .PP \fB\-pN\fR .RS 4 Prints the network address of the interface\&. .RE .PP \fB\-pb\fR .RS 4 Prints the broadcast address of the interface\&. .RE .PP \fB\-pm\fR .RS 4 Prints the MTU of the interface\&. .RE .PP Following options are Linux only\&. .PP \fB\-ph\fR .RS 4 Prints the hardware address of the interface\&. .RE .PP \fB\-pf\fR .RS 4 Prints the flags of the interface\&. .RE .PP \fB\-si\fR .RS 4 Prints out all the input statistics of the interface\&. .RE .PP \fB\-sip\fR .RS 4 Prints the number of input packets\&. .RE .PP \fB\-sib\fR .RS 4 Prints the number of input bytes\&. .RE .PP \fB\-sie\fR .RS 4 Prints the number of input errors\&. .RE .PP \fB\-sid\fR .RS 4 Prints the number of dropped input packets\&. .RE .PP \fB\-sif\fR .RS 4 Prints the number of input fifo overruns\&. .RE .PP \fB\-sic\fR .RS 4 Print the number of compressed input packets\&. .RE .PP \fB\-sim\fR .RS 4 Prints the number of input multicast packets\&. .RE .PP \fB\-so\fR .RS 4 Prints out all the output statistics of the interface\&. .RE .PP \fB\-sop\fR .RS 4 Prints the number of output packets\&. .RE .PP \fB\-sob\fR .RS 4 Prints the number of output bytes\&. .RE .PP \fB\-soe\fR .RS 4 Prints the number of output errors\&. .RE .PP \fB\-sod\fR .RS 4 Prints the number of dropped output packets\&. .RE .PP \fB\-sof\fR .RS 4 Prints the number of output fifo overruns\&. .RE .PP \fB\-sox\fR .RS 4 Print the number of output collisions\&. .RE .PP \fB\-soc\fR .RS 4 Prints the number of output carrier losses\&. .RE .PP \fB\-som\fR .RS 4 Prints the number of output multicast packets\&. .RE .PP \fB\-bips\fR .RS 4 Prints the number of bytes of incoming traffic measured in one second\&. .RE .PP \fB\-bops\fR .RS 4 Prints the number of bytes of outgoing traffic measured in one second\&. .RE .SH "AUTHOR" .PP Benjamin BAYART Index: head/sysutils/moreutils/files/ifne.1 =================================================================== --- head/sysutils/moreutils/files/ifne.1 (revision 483915) +++ head/sysutils/moreutils/files/ifne.1 (revision 483916) @@ -1,54 +1,54 @@ '\" t .\" Title: ifne .\" Author: Javier Merino -.\" Generator: DocBook XSL Stylesheets v1.76.1 +.\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 2008-05-01 .\" Manual: moreutils .\" Source: moreutils .\" Language: English .\" .TH "IFNE" "1" "2008\-05\-01" "moreutils" "moreutils" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ifne \- Run command if the standard input is not empty .SH "SYNOPSIS" .HP \w'\fBifne\ [\-n]\ command\fR\ 'u \fBifne [\-n] command\fR .SH "DESCRIPTION" .PP \fBifne\fR runs the following command if and only if the standard input is not empty\&. .SH "OPTIONS" .PP \fB\-n\fR .RS 4 Reverse operation\&. Run the command if the standard input is empty\&. .sp Note that if the standard input is not empty, it is passed through ifne in this case\&. .RE .SH "EXAMPLE" .HP \w'\fBfind\ \&.\ \-name\ core\ |\ ifne\ mail\ \-s\ "Core\ files\ found"\ root\fR\ 'u \fBfind \&. \-name core | ifne mail \-s "Core files found" root\fR .SH "AUTHOR" .PP Copyright 2008 by Javier Merino .PP Licensed under the GNU GPL Index: head/sysutils/moreutils/files/isutf8.1 =================================================================== --- head/sysutils/moreutils/files/isutf8.1 (revision 483915) +++ head/sysutils/moreutils/files/isutf8.1 (revision 483916) @@ -1,74 +1,73 @@ '\" t .\" Title: isutf8 .\" Author: Lars Wirzenius -.\" Generator: DocBook XSL Stylesheets v1.76.1 -.\" Date: 04/30/2017 +.\" Generator: DocBook XSL Stylesheets v1.79.1 +.\" Date: 01/01/2018 .\" Manual: moreutils .\" Source: moreutils .\" Language: English .\" -.TH "ISUTF8" "1" "04/30/2017" "moreutils" "moreutils" +.TH "ISUTF8" "1" "01/01/2018" "moreutils" "moreutils" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" isutf8 \- check whether files are valid UTF\-8 .SH "SYNOPSIS" .HP \w'\fBisutf8\fR\ 'u \fBisutf8\fR [\fB\-hqliv\fR] [\fB\-\-help\fR] [\fB\-\-quiet\fR] [\fB\-\-list\fR] [\fB\-\-invert\fR] [\fB\-\-verbose\fR] [[\fIfile\fR...]] .SH "DESCRIPTION" .PP \fBisutf8\fR checks whether files are syntactically valid UTF\-8\&. Input is either files named on the command line, or the standard input\&. Notices about files with invalid UTF\-8 are printed to standard output\&. .SH "OPTIONS" .PP \fB\-h\fR, \fB\-\-help\fR .RS 4 Print out a help summary\&. .RE .PP \fB\-q\fR, \fB\-\-quiet\fR .RS 4 Don\*(Aqt print messages telling which files are invalid UTF\-8, merely indicate it with the exit status\&. .RE .PP \fB\-l\fR, \fB\-\-list\fR .RS 4 Print only the names of files containing invalid UTF\-8\&. .RE .PP \fB\-i\fR, \fB\-\-invert\fR .RS 4 Invert the selection: list UTF\-8 compatible files\&. .RE .PP \fB\-v\fR, \fB\-\-verbose\fR .RS 4 Also print an hexdump\-like view of the error and some context\&. .RE .SH "EXIT STATUS" .PP If the file is valid UTF\-8, the exit status is zero\&. If the file is not valid UTF\-8, or there is some error, the exit status is non\-zero\&. .SH "AUTHOR" .PP Lars Wirzenius, Julien Palard .SH "SEE ALSO" .PP - \fButf8\fR(7) Index: head/sysutils/moreutils/files/lckdo.1 =================================================================== --- head/sysutils/moreutils/files/lckdo.1 (revision 483915) +++ head/sysutils/moreutils/files/lckdo.1 (revision 483916) @@ -1,97 +1,97 @@ '\" t .\" Title: lckdo .\" Author: Michael Tokarev -.\" Generator: DocBook XSL Stylesheets v1.76.1 +.\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 2007-08-15 .\" Manual: moreutils .\" Source: moreutils .\" Language: English .\" .TH "LCKDO" "1" "2007\-08\-15" "moreutils" "moreutils" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" lckdo \- run a program with a lock held .SH "SYNOPSIS" .HP \w'\fBlckdo\fR\ 'u \fBlckdo\fR [options] {lockfile} {program} [arguments] .SH "DESCRIPTION" .PP \fBlckdo\fR runs a program with a lock held, in order to prevent multiple processes from running in parallel\&. Use just like \fBnice\fR or \fBnohup\fR\&. .PP Now that util\-linux contains a similar command named \fBflock\fR, lckdo is deprecated, and will be removed from some future version of moreutils\&. .SH "OPTIONS" .PP \fB\-w\fR .RS 4 If the lock is already held by another process, wait for it to complete instead of failing immediately\&. .RE .PP \fB\-W {sec}\fR .RS 4 The same as \-w but wait not more than sec seconds\&. .RE .PP \fB\-e\fR .RS 4 Execute the program directly without forking and waiting (keeps an extra file descriptor open)\&. .RE .PP \fB\-E {nnn}\fR .RS 4 Set the file descriptor number to keep open when exec()ing (implies \-e)\&. .RE .PP \fB\-n\fR .RS 4 Do not create the lock file if it does not exist\&. .RE .PP \fB\-q\fR .RS 4 Produce no output if lock is already held\&. .RE .PP \fB\-s\fR .RS 4 Lock in shared (read) mode\&. .RE .PP \fB\-x\fR .RS 4 Lock in exclusive (write) mode (default)\&. .RE .PP \fB\-t\fR .RS 4 Test for lock existence\&. .RE .SH "EXIT STATUS" .PP If the lock was successfully acquired, the return value is that of the program invoked by \fBlckdo\fR\&. If the lock couldn\*(Aqt be acquired, EX_TEMPFAIL is returned\&. If there was a problem opening/creating or locking the lock file, EX_CANTCREAT or EX_OSERR will be returned\&. .SH "AUTHOR" .PP Michael Tokarev Index: head/sysutils/moreutils/files/mispipe.1 =================================================================== --- head/sysutils/moreutils/files/mispipe.1 (revision 483915) +++ head/sysutils/moreutils/files/mispipe.1 (revision 483916) @@ -1,47 +1,47 @@ '\" t .\" Title: mispipe .\" Author: Nathanael Nerode -.\" Generator: DocBook XSL Stylesheets v1.76.1 +.\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 2006-09-07 .\" Manual: moreutils .\" Source: moreutils .\" Language: English .\" .TH "MISPIPE" "1" "2006\-09\-07" "moreutils" "moreutils" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" mispipe \- pipe two commands, returning the exit status of the first .SH "SYNOPSIS" .HP \w'\fBmispipe\fR\ 'u \fBmispipe\fR [\fI"command1"\fR] [\fI"command2"\fR] .SH "DESCRIPTION" .PP \fBmispipe\fR pipes two commands together like the shell does, but unlike piping in the shell, which returns the exit status of the last command; when using mispipe, the exit status of the first command is returned\&. .PP Note that some shells, notably \fBbash\fR, do offer a pipefail option, however, that option does not behave the same since it makes a failure of any command in the pipeline be returned, not just the exit status of the first\&. .SH "EXIT STATUS" .PP The exit status of the first command\&. If the process terminated abnormally (due to a signal), 128 will be added to its exit status\&. .SH "AUTHOR" .PP Nathanael Nerode Index: head/sysutils/moreutils/files/moreutils-parallel.1 =================================================================== --- head/sysutils/moreutils/files/moreutils-parallel.1 (revision 483915) +++ head/sysutils/moreutils/files/moreutils-parallel.1 (revision 483916) @@ -1,90 +1,87 @@ '\" t .\" Title: parallel .\" Author: Joey Hess -.\" Generator: DocBook XSL Stylesheets v1.76.1 +.\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 2009-07-02 .\" Manual: moreutils .\" Source: moreutils .\" Language: English .\" .TH "PARALLEL" "1" "2009\-07\-02" "moreutils" "moreutils" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" parallel \- run programs in parallel .SH "SYNOPSIS" .HP \w'\fBparallel\fR\fB\-\-\fR\ 'u \fBparallel\fR [options] [command]\fB\-\-\fR [argument\ \&.\&.\&.] .HP \w'\fBparallel\fR\fB\-\-\fR\ 'u \fBparallel\fR [options]\fB\-\-\fR [command\ \&.\&.\&.] .SH "DESCRIPTION" .PP \fBparallel\fR runs the specified command, passing it a single one of the specified arguments\&. This is repeated for each argument\&. Jobs may be run in parallel\&. The default is to run one job per CPU\&. .PP If no command is specified before the \-\-, the commands after it are instead run in parallel\&. .SH "OPTIONS" .PP \fB\-j maxjobs\fR .RS 4 Use to limit the number of jobs that are run at the same time\&. .RE .PP \fB\-l maxload\fR .RS 4 Wait as needed to avoid starting new jobs when the system\*(Aqs load average is not below the specified limit\&. .RE .PP \fB\-i\fR .RS 4 Normally the command is passed the argument at the end of its command line\&. With this option, any instances of "{}" in the command are replaced with the argument\&. .RE .PP \fB\-n\fR .RS 4 Number of arguments to pass to a command at a time\&. Default is 1\&. Incompatible with \-i .RE .SH "EXAMPLE" .PP - \fBparallel sh \-c "echo hi; sleep 2; echo bye" \-\- 1 2 3\fR .PP This runs three subshells that each print a message, delay, and print another message\&. If your system has multiple CPUs, parallel will run some of the jobs in parallel, which should be clear from the order the messages are output\&. .PP - \fBparallel \-j 3 ufraw \-o processed \-\- *\&.NEF\fR .PP This runs three ufraw processes at the same time until all of the NEF files have been processed\&. .PP - \fBparallel \-j 3 \-\- ls df "echo hi"\fR .PP This runs three independent commands in parallel\&. .SH "EXIT STATUS" .PP Its exit status is the combination of the exit statuses of each command ran, ORed together\&. (Thus, if any one command exits nonzero, \fBparallel\fR as a whole will exit nonzero\&.) .SH "NOTES" .PP All output to stdout and stderr is serialised through a corresponding internal pipe, in order to prevent annoying concurrent output behaviour\&. Note that serialisation is not done on any other file descriptors and file position based access to a nonstandard file descriptor might have unexpected results\&. .SH "AUTHOR" .PP Tollef Fog Heen Index: head/sysutils/moreutils/files/pee.1 =================================================================== --- head/sysutils/moreutils/files/pee.1 (revision 483915) +++ head/sysutils/moreutils/files/pee.1 (revision 483916) @@ -1,71 +1,70 @@ '\" t .\" Title: pee .\" Author: Joey Hess -.\" Generator: DocBook XSL Stylesheets v1.76.1 +.\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 2016-12-20 .\" Manual: moreutils .\" Source: moreutils .\" Language: English .\" .TH "PEE" "1" "2016\-12\-20" "moreutils" "moreutils" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" pee \- tee standard input to pipes .SH "SYNOPSIS" .HP \w'\fBpee\fR\ 'u \fBpee\fR [\-\-[no\-]ignore\-sigpipe] [\-\-[no\-]ignore\-write\-errors] [[\fI"command"\fR...]] .SH "DESCRIPTION" .PP \fBpee\fR is like \fBtee\fR but for pipes\&. Each command is run and fed a copy of the standard input\&. The output of all commands is sent to stdout\&. .PP Note that while this is similar to \fBtee\fR, a copy of the input is not sent to stdout, like tee does\&. If that is desired, use \fBpee cat \&.\&.\&.\fR .SH "OPTIONS" .PP \fB\-\-ignore\-sigpipe\fR, \fB\-\-no\-ignore\-sigpipe\fR .RS 4 Do (not) ignore SIGPIPE\&. Any command started by \fBpee\fR might cause a SIGPIPE when it exists\&. If you ignore SIGPIPE, you probably also want to ignore write errors (see below)\&. Ignoring SIGPIPE is the default behaviour\&. .RE .PP \fB\-\-ignore\-write\-errors\fR, \fB\-\-no\-ignore\-write\-errors\fR .RS 4 Do (not) ignore write errors\&. When a command started by \fBpee\fR is no more accepting data via the pipe between itself and \fBpee\fR, a write error occurs in \fBpee\fR\&. If this error is not ignored, \fBpee\fR is going to terminate all child processes and exists\&. Ignoring write errors is the default behaviour\&. .RE .SH "SEE ALSO" .PP - \fBtee\fR(1), \fBpipe\fR(7) .SH "AUTHOR" .PP Miek Gieben Index: head/sysutils/moreutils/files/sponge.1 =================================================================== --- head/sysutils/moreutils/files/sponge.1 (revision 483915) +++ head/sysutils/moreutils/files/sponge.1 (revision 483916) @@ -1,63 +1,62 @@ '\" t .\" Title: sponge .\" Author: Joey Hess -.\" Generator: DocBook XSL Stylesheets v1.76.1 +.\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 2006-02-19 .\" Manual: moreutils .\" Source: moreutils .\" Language: English .\" .TH "SPONGE" "1" "2006\-02\-19" "moreutils" "moreutils" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" sponge \- soak up standard input and write to a file .SH "SYNOPSIS" .HP \w'\fBsed\ \*(Aq\&.\&.\&.\*(Aq\ file\ |\ grep\ \*(Aq\&.\&.\&.\*(Aq\ |\ sponge\ [\-a]\ file\fR\ 'u \fBsed \*(Aq\&.\&.\&.\*(Aq file | grep \*(Aq\&.\&.\&.\*(Aq | sponge [\-a] file\fR .SH "DESCRIPTION" .PP \fBsponge\fR reads standard input and writes it out to the specified file\&. Unlike a shell redirect, \fBsponge\fR soaks up all its input before writing the output file\&. This allows constructing pipelines that read from and write to the same file\&. .PP - \fBsponge\fR preserves the permissions of the output file if it already exists\&. .PP When possible, \fBsponge\fR creates or updates the output file atomically by renaming a temp file into place\&. (This cannot be done if TMPDIR is not in the same filesystem\&.) .PP If the output file is a special file or symlink, the data will be written to it, non\-atomically\&. .PP If no file is specified, \fBsponge\fR outputs to stdout\&. .SH "OPTIONS" .PP \fB\-a\fR .RS 4 Replace the file with a new file that contains the file\*(Aqs original content, with the standard input appended to it\&. This is done atomically when possible\&. .RE .SH "AUTHOR" .PP Colin Watson and Tollef Fog Heen