fmtcol - Format lines of text as columns
version 0.007
fmtcol [-w <width>] [<file>...] fmtcol -h|--help|--version
This program reads lines from STDIN or a file and formats them as columns on STDOUT, much like ls(1) does.
STDIN
STDOUT
ls(1)
This differs from fmt(1) that the columns are read top-bottom not left-right.
fmt(1)
This changes:
tar tzf my_tarball.tar.gz | tr '\n' ' ' | fmt
Into:
tar tzf my_tarball.tar.gz | fmtcol
Format the lines in the given file. If not given, or if file is "-", will read from STDIN.
file
Format the columns for the given width. Defaults to the width of the current terminal.
Show this help document.
Print the current fmtcol and Perl versions.
Doug Bell <preaction@cpan.org>
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.
To install Term::FormatColumns, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Term::FormatColumns
CPAN shell
perl -MCPAN -e shell install Term::FormatColumns
For more information on module installation, please visit the detailed CPAN module installation guide.