FFUser
31st May 2009, 10:06 PM
Hi -
Having gotten a little forgetful, and not successful in Googling the answer, I do not immediately recall how to reformat a list (let's say from stdin) to a table (on stdout).
For the sake of an example, I'd like to pipe the following input:
Item_1_1
Item_1_2
Item_1_3
Item_2_1
Item_2_2
Item_2_3
to a command which generates:
Item_1_1;Item_1_2;Item_1_3
Item_2_1;Item_2_2;Item_2_3
I seem to recall it is a function in the groff/ troff suite, but could be wrong. I appreciate the help.
Thanks.
Having gotten a little forgetful, and not successful in Googling the answer, I do not immediately recall how to reformat a list (let's say from stdin) to a table (on stdout).
For the sake of an example, I'd like to pipe the following input:
Item_1_1
Item_1_2
Item_1_3
Item_2_1
Item_2_2
Item_2_3
to a command which generates:
Item_1_1;Item_1_2;Item_1_3
Item_2_1;Item_2_2;Item_2_3
I seem to recall it is a function in the groff/ troff suite, but could be wrong. I appreciate the help.
Thanks.