diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-02-24 10:14:28 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-02-24 10:14:28 +1300 |
commit | 949d55ab57d690f80a530acc7d674055bc8e3814 (patch) | |
tree | 5c7c94c02cd58105d9219bb0f560930303e32f80 /man/man1/tlcs.1 | |
parent | Update submodules (diff) | |
download | dotfiles-949d55ab57d690f80a530acc7d674055bc8e3814.tar.gz dotfiles-949d55ab57d690f80a530acc7d674055bc8e3814.zip |
Add tl(1) and tlcs(1)
Diffstat (limited to 'man/man1/tlcs.1')
-rw-r--r-- | man/man1/tlcs.1 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/man/man1/tlcs.1 b/man/man1/tlcs.1 new file mode 100644 index 00000000..4c39612e --- /dev/null +++ b/man/man1/tlcs.1 @@ -0,0 +1,24 @@ +.TH TLCS 1 "February 2016" "Manual page for tlcs" +.SH NAME +.B tlcs +\- execute command and tag stdout/stderr lines +.SH USAGE +.B tlcs [-h] [-c] [-o STDOUT_PREFIX] [-e STDERR_PREFIX] [--] COMMAND [ARG1...] +.SH DESCRIPTION +Execute a command and tag the output of the stdout and stderr streams, line by +line, using tl(1) under the hood. Add -c when writing to a terminal to color +the lines. +.P +Option -h gives help. Specify a stdout prefix with -o (default "stdout: "), +and/or a stderr prefix with -e (default "stderr: "). Option -c prints stdout +lines in green and stderr lines in red if the respective streams are writing to +appropriate terminals. Remaining arguments are assumed to be a command and its +arguments. +.P + $ tlcs cat ~/.vimrc + $ tlcs -e 'FAIL: ' nonexistent-command +.SH SEE ALSO +tl(1) +.SH AUTHOR +Tom Ryder <tom@sanctum.geek.nz> + |