Timeline for Color escape codes in pretty printed columns
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 22, 2013 at 19:27 | comment | added | hek2mgl |
strange awk problem!
|
|
Nov 22, 2013 at 19:06 | comment | added | hek2mgl | You have green ouput only now, but aligment is ok? | |
Nov 22, 2013 at 19:00 | comment | added | tomocafe | Thank you :) I changed the original file above to look more like the real thing. (I had to simplify, it's monstrous) | |
Nov 22, 2013 at 18:53 | comment | added | tomocafe |
My terminal is xterm-color and I'm not sure how to check which version of column I have...
|
|
Nov 22, 2013 at 18:52 | comment | added | tomocafe |
No, it's a real tab :P I got it to print the whole third field by changing to awk -F'\t' , but I can't seem to get around the alignment issue. When I remove the color codes, it works. When I add them, it doesn't.
|
|
Nov 22, 2013 at 18:51 | comment | added | hek2mgl |
Do you have the word <tab> as delimiter, not a real tab?
|
|
Nov 22, 2013 at 18:49 | comment | added | hek2mgl | How can it be? I've tested with your input? Which terminal type are you using? | |
Nov 22, 2013 at 18:48 | comment | added | tomocafe | Nope... still prints the TAB instead of aligning. Also, the third field has spaces in it, and this only prints the first word of it. | |
Nov 22, 2013 at 18:46 | history | edited | hek2mgl | CC BY-SA 3.0 |
added 28 characters in body
|
Nov 22, 2013 at 18:41 | comment | added | tomocafe |
If I understand, that awk command will produce the same output as file I posted above... but I already tried sending that to column and it doesn't align right with the escape codes.
|
|
Nov 22, 2013 at 18:41 | history | edited | hek2mgl | CC BY-SA 3.0 |
added 74 characters in body
|
Nov 22, 2013 at 18:34 | comment | added | tomocafe |
How do you preserve the spacing done by column ? From your awk command, it looks like a static number of spaces.
|
|
Nov 22, 2013 at 18:33 | history | answered | hek2mgl | CC BY-SA 3.0 |