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

Re: what is the use of -c parameter of column(1), can you demonstrate with an example?



Dne, 02. 11. 2010 12:29:12 je Zhang Weiwu napisal(a):
 from man column(1)

     -c      Output is formatted for a display columns wide.

Try:

almustafa@orphalese:~$ echo aaa bbb | column  -c 20


expected result (17 spaces):

aaa                bbb

actual result:

almustafa@orphalese:~$ echo aaa bbb | column  -c 20
aaa bbb

Confusing. Or do I misunderstand the purpose of column(1)?


Possibly. Try

<snip>
ls -l|sed 1d|column -c 100
<pins>

or

<snip>
ls -l|sed 1d|column -c 200
<pins>

or something along that line.
--
Cheerio,

Klistvud http://bufferoverflow.tiddlyspot.com Certifiable Loonix User #481801 Please reply to the list, not to me.


Reply to: