For Programmers: Free Programming Magazines  


Home > Archive > AWK > September 2004 > Re: print 3 lines without newline









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: print 3 lines without newline
Juhan Leemet

2004-09-28, 3:55 pm

On Thu, 23 Sep 2004 17:01:25 +0000, Kenny McCormack wrote:
> In article <slrncl53aj.iov.egerlach@rex2.linuxburg.de>,
> Ekkard Gerlach <egerlach@aiai.de> wrote:
[color=darkred]
> The cannonical answer is, of course:
>
> ORS=NR%3?";":"\n"
>
> Yes, that's the whole program. HTH.


Ingenious! Beautiful!!!

--
Juhan Leemet
Logicognosis, Inc.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com