This repository has been archived by the owner. It is now read-only.
Formats CSV/TSV data on the console
C++
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
LICENSE
Makefile
README
tblf.1
tblf.cpp

README

NAME
     tblf — format delimited data as a table

SYNOPSIS
     tblf [-lnrz] [-d delimiter] file

DESCRIPTION
     Prints a formatted version of the input table to stdout. Short values are
     padded, and delimiters replaced with double spaces.  tblf assumes all
     input to be UTF-8 or US-ASCII encoded.

     -d delimiter
	     Use delimiter as the seperation token. If the -d argument is not
	     given, tblf tries to deduce the delimiter character automati‐
	     cally.

     -f field
	     Only output the column pointed to by field , which is 1-indexed.
	     Repeat the -f flag to output multiple columns.  tblf outputs all
	     columns by default.

     -l	     Left-align numeric values.

     -n	     Add row numbers.

     -r	     Right-align numeric values (default).

     -z	     Enable zebra-stripe row highlighting.

     file    The file to format. Use a single dash to read from stdin.

EXAMPLES
	   # Format the user database:
	   $ tblf /etc/passwd
	   # Decompress, cut and format a tab-seperated database dump:
	   $ zcat db.tsv.gz | cut -f1-2 | tblf -

SEE ALSO
     cut(1), sort(1), uniq(1)

AUTHOR
     tblf is written by Wander Nauta <info@wandernauta.nl>

REPORTING BUGS
     Bugs should be reported to the GitHub issue tracker at:

     <https://github.com/wandernauta/tblf/issues>