From aaec832c865bfd4878cb8bcdb067d98dc6febd6e Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Mon, 10 Jul 2017 16:52:57 +0200 Subject: xe: add -L for output line buffering We spawn one logging process per job, this is not very efficient, but easy to implement. --- xe.1 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'xe.1') 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). -- cgit 1.4.1