App-TarColor
view release on metacpan or search on metacpan
t/output/gnu_tar_5
t/output/gnu_tar_rwx_filename
t/output/gnu_tar_with_jar_file
t/output/ls_with_colors_and_spaces
t/output/ls_with_seconds
t/output/mp3_purple_gz_cyan
t/output/pax_1
t/output/short_lines.txt
t/output/sun_tar
t/test.t
tarcolor_screenshot.png
tarcolor_screenshot_2.png
# tarcolor
A Perl program that can color the output of `tar tvf` similarly to the way GNU `ls` would.
By Marc Abramowitz (http://marc-abramowitz.com)
[](http://travis-ci.org/msabramo/tarcolor)
## Installation
From [the CPAN distribution](http://search.cpan.org/~msabramo/App-TarColor/):
$ cpanm App::TarColor
Download a tarball `App-TarColor-<version>.tar.gz` from [the downloads page](https://github.com/msabramo/tarcolor/downloads).
Colors can be customized using the `LS_COLORS` or `TAR_COLORS` environment variables:
$ export TAR_COLORS='di=01;34:ln=01;36:ex=01;32:so=01;40:pi=01;40:bd=40;33:cd=40;33:su=0;41:sg=0;46'
The format for `LS_COLORS` and `TAR_COLORS` is the same format used by `LS_COLORS` (used by [GNU ls](http://www.gnu.org/software/coreutils/manual/html_node/ls-invocation.html#ls-invocation)). So if you use GNU ls and have your `LS_COLORS` set, then t...
## Example

## Tested with
* Mac OS X 10.6.8 (Snow Leopard)
* bsdtar 2.6.2 -- [libarchive](http://code.google.com/p/libarchive/) 2.6.2
* [GNU tar](http://www.gnu.org/software/tar/) 1.17 in `/usr/bin/gnutar`
* [GNU tar](http://www.gnu.org/software/tar/) 1.26 installed with Homebrew
* [pax](http://en.wikipedia.org/wiki/Pax_\(Unix\)) -- `/bin/pax -v -f`
* bsdcpio 1.1.0 -- [libarchive](http://code.google.com/p/libarchive/) 2.6.2 -- `cpio -itv < file.tar`
( run in 1.687 second using v1.01-cache-2.11-cpan-df04353d9ac )