NAME

column-run - Run several commands and show their output in multiple columns

VERSION

This document describes version 0.001 of column-run (from Perl distribution App-column-run), released on 2020-06-06.

SYNOPSIS

Usage:

% column-run [--arg=s+] [--args-json=s] [--command=s+] [--commands-json=s]
    [--linum-width=s] [--no-show-linum] [--noshow-linum]
    [--on-long-line=s] [--page-result[=program]] [--separator=s]
    [--show-linum] [--view-result[=program]] [--wrap] <command> ...

DESCRIPTION

Features:

  • ANSI color and wide character handling

  • multiple output backend (HTML or text)

  • passing adjusted COLUMNS environment so commands can adjust their output

  • Passing common arguments to all commands

  • Multiplexing STDIN to all commands

OPTIONS

* marks required options.

Main options

--arg=s@

Common arguments to pass to each program.

Can be specified multiple times.

--args-json=s

Common arguments to pass to each program (JSON-encoded).

See --arg.

--command=s@*

Can be specified multiple times.

--commands-json=s

See --command.

--linum-width=s

Line number width.

--on-long-line=s

What to do to long lines.

Default value:

"clip"

Valid values:

["clip","wrap"]
--separator=s

Separator character between columns.

Default value:

"|"
--show-linum

Show line number.

--wrap

Shortcut for --on-long-line=wrap.

See --on-long-line.

Output options

--page-result

Filter output through a pager.

--view-result

View output using a viewer.

Other options

--help, -h, -?

Display help message and exit.

--version, -v

Display program's version and exit.

COMPLETION

This script has shell tab completion capability with support for several shells.

bash

To activate bash completion for this script, put:

complete -C column-run column-run

in your bash startup (e.g. ~/.bashrc). Your next shell session will then recognize tab completion for the command. Or, you can also directly execute the line above in your shell to activate immediately.

It is recommended, however, that you install modules using cpanm-shcompgen which can activate shell completion for scripts immediately.

tcsh

To activate tcsh completion for this script, put:

complete column-run 'p/*/`column-run`/'

in your tcsh startup (e.g. ~/.tcshrc). Your next shell session will then recognize tab completion for the command. Or, you can also directly execute the line above in your shell to activate immediately.

It is also recommended to install shcompgen (see above).

other shells

For fish and zsh, install shcompgen as described above.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/App-column-run.

SOURCE

Source repository is at https://github.com/perlancar/perl-App-column-run.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-column-run

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

SEE ALSO

column. Unix utility.

diff. The --side-by-side (-y) option display files in two columns.

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2020 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.