Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] "Windows is Free" stats: reformatted: How to Fish



tlug@example.com wrote:
> Actually, there is not. [1]  The thing you forgot about here
> is that data delimited with tabs is usually displayed with
> aligned columns, which is what is desired in this case.  A
> tab is not simply represented as a given number of spaces; it
> is displayed as a series of spaces up until the next "tab
> stop."
> 
> This a good application for awk, since it works with columns
> of data, but it is still not a one-liner since there are
> multiples tables of data in the message.

Someone mentioned expand already, right?  expand/unexpand
allow you to replace tabs with spaces/remove spaces and put
in tabs.
expand -t 8 < infile > outfile
will replace tabs in infile with spaces at a tab stop of
eight.  Doesn't work for proportional fonts of course.

Steve S.


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links