chaostic

Group: Members
Posts: 328
Joined: Mar. 2005 |
 |
Posted: Jan. 26 2008,13:01 |
 |
Quote (^thehatsrule^ @ Jan. 25 2008,11:07) | Quote | I can't do this with sed because sed always adds a newline to the end of any pattern space. | You can suppress the default action of printing out the pattern space with -n switch |
I could do that, but then how would I get output? The biggest thing is that sed always adds a newline to the end of anything it prints out, filling the terminal buffer alot sooner then I want.
But, like I said. I figured it out, and found out about the sed -u option, which makes use a line buffer instead of its normal block buffer.
|