diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-07-10 16:52:57 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-07-10 16:58:46 +0200 |
commit | aaec832c865bfd4878cb8bcdb067d98dc6febd6e (patch) | |
tree | 17649b900db85c49ff0ad1a2e66942b7da55659e /xe.1 | |
parent | 637d958bd868f35cfac1170354921792bbf91899 (diff) | |
download | xe-aaec832c865bfd4878cb8bcdb067d98dc6febd6e.tar.gz xe-aaec832c865bfd4878cb8bcdb067d98dc6febd6e.tar.xz xe-aaec832c865bfd4878cb8bcdb067d98dc6febd6e.zip |
xe: add -L for output line buffering
We spawn one logging process per job, this is not very efficient, but easy to implement.
Diffstat (limited to 'xe.1')
-rw-r--r-- | xe.1 | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/xe.1 b/xe.1 index 1e0d7d1..0e2fde6 100644 --- a/xe.1 +++ b/xe.1 @@ -6,7 +6,7 @@ .Nd run command for each line or argument .Sh SYNOPSIS .Nm -.Op Fl 0FRnv +.Op Fl 0FLRnv .Op Fl I Ar arg .Op Fl N Ar maxargs .Op Fl j Ar maxjobs @@ -84,6 +84,15 @@ is the default) .It Fl F Fatal: stop and exit when a command execution failed. +.It Fl L +Run the commands with line-buffered output; +lines from two jobs will not interleave. +When used with +.Fl vv , +also prefix each line with the PID +in such a manner that the output can be piped to +.Sq Li sort -snk1 +to group it by job. .It Fl R Return with status 122 when no arguments have been passed (instead of 0, the default). |