Emacs?
http://de.geocities.com/ulf_jasper/emacs.html

Perl has Text::CSV_XS which is excellent- you could adapt that as well.

On Jan 23, 2006, at 1:25 PM, Robert Citek wrote:

>
> Does anyone know of a tool or shell script for viewing tab-delimited
> files?
>
> I'd like to be able to view tab-delimited files with the columns
> aligned.  I wrote a one-line perl script for this and put it into an
> alias:
>
> alias cat.tab='perl -lane '\''@F=split("\t", $_,-1) ; $foo="| %15.40s
> "x($#F +1) . "|\n"; printf($foo, @F)'\'' '
>
> which allows me to do something like this:
>
>   ls -la | tr -s ' ' '\t' | cat.tab | less -S# 10
>
> Although it mostly works, I was wondering if there was anything a bit
> cleaner.
>
> Googling for linux+viewing+tab-delimited+files wasn't very fruitful.

|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-
AgentM
[EMAIL PROTECTED]
|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-

 
_______________________________________________
CWE-LUG mailing list
[email protected]
http://www.cwelug.org/
http://www.cwelug.org/archives/
http://www.cwelug.org/mailinglist/

Reply via email to