The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

fmtcol - Format lines of text as columns

VERSION

version 0.007

SYNOPSIS

    fmtcol [-w <width>] [<file>...]

    fmtcol -h|--help|--version

DESCRIPTION

This program reads lines from STDIN or a file and formats them as columns on STDOUT, much like ls(1) does.

This differs from fmt(1) that the columns are read top-bottom not left-right.

This changes:

    tar tzf my_tarball.tar.gz | tr '\n' ' ' | fmt

Into:

    tar tzf my_tarball.tar.gz | fmtcol

ARGUMENTS

file

Format the lines in the given file. If not given, or if file is "-", will read from STDIN.

OPTIONS

-w <width>

Format the columns for the given width. Defaults to the width of the current terminal.

-h | --help

Show this help document.

--version

Print the current fmtcol and Perl versions.

AUTHOR

Doug Bell <preaction@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Doug Bell.

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