Groups | Search | Server Info | Login | Register


Groups > comp.lang.awk > #9731

Re: printing words without newlines?

From David Chmelik <dchmelik@gmail.com>
Newsgroups alt.comp.lang.awk, comp.lang.awk
Subject Re: printing words without newlines?
Date 2024-05-13 02:04 +0000
Organization A noiseless patient Spider
Message-ID <v1rsg2$37eqd$1@dont-email.me> (permalink)
References <v1pi7c$2b87j$1@dont-email.me> <e0be0c38-e14e-45ba-ac87-5e2e4bd4f5cd@scorecrow.com> <v1qblf$solc$1@news.xmission.com>

Cross-posted to 2 groups.

Show all headers | View raw


On Sun, 12 May 2024 12:11:27 -0000 (UTC), Kenny McCormack wrote:
> Of course, the whole point of this thread is that none of us has any
> idea what OP is talking about or what his actual problem is.  We can
> only guess...

Not the point.  I stated I'm trying AWK... problem is in subject line.  
Surprisingly, after rebooting PC, it all works now (un)commenting  
particular parts (OSR or commenting out print and uncommenting printf).

> On 12/05/2024 09:52, Bruce Horrocks wrote:
> Let me re-phrase that: it would be better to set ORS in the BEGIN {}
> section. I'm not sure why yours is not working but with some commented
> out code and some not, your example is unclear.

Okay.  What I posted works to read file, sort, print lines; I commented 
out two versions that (initially) didn't work to print all on one line  
(OSR or commenting out print and uncommenting printf).  After rebooting 
(maybe just needed to restart shell?) those worked as expected... with ORS 
in BEGIN but alternatively in function I wrote.  I guess as Mr McCormack 
explained, one might have reasons to change OSR in different functions.

Back to comp.lang.awk | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

printing words without newlines? David Chmelik <dchmelik@gmail.com> - 2024-05-12 04:57 +0000
  Re: printing words without newlines? Bruce Horrocks <07.013@scorecrow.com> - 2024-05-12 09:52 +0100
    Re: printing words without newlines? Bruce Horrocks <07.013@scorecrow.com> - 2024-05-12 09:55 +0100
    Re: printing words without newlines? gazelle@shell.xmission.com (Kenny McCormack) - 2024-05-12 12:11 +0000
      Re: printing words without newlines? David Chmelik <dchmelik@gmail.com> - 2024-05-13 02:04 +0000
      Re: printing words without newlines? Kaz Kylheku <643-408-1753@kylheku.com> - 2024-05-13 16:49 +0000
  Re: printing words without newlines? gazelle@shell.xmission.com (Kenny McCormack) - 2024-05-13 06:56 +0000
    Re: printing words without newlines? gazelle@shell.xmission.com (Kenny McCormack) - 2024-05-13 14:53 +0000
      Resurrecting an old thread (Was: printing words without newlines?) gazelle@shell.xmission.com (Kenny McCormack) - 2024-07-15 18:10 +0000
  Re: printing words without newlines? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-05-13 10:18 +0200
  Re: printing words without newlines? Kaz Kylheku <643-408-1753@kylheku.com> - 2024-05-13 17:17 +0000
    Re: printing words without newlines? gazelle@shell.xmission.com (Kenny McCormack) - 2024-05-13 17:26 +0000
      Re: printing words without newlines? Kaz Kylheku <643-408-1753@kylheku.com> - 2024-05-13 23:33 +0000
        Array indices are small integers? (Was: printing words without newlines?) gazelle@shell.xmission.com (Kenny McCormack) - 2024-05-14 13:40 +0000
  Re: printing words without newlines? Ed Morton <mortonspam@gmail.com> - 2024-05-16 08:11 -0500
    Re: printing words without newlines? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-05-16 15:55 +0200
      Once upon a time... (Was: printing words without newlines?) gazelle@shell.xmission.com (Kenny McCormack) - 2024-05-16 14:15 +0000
        Re: Once upon a time... (Was: printing words without newlines?) gazelle@shell.xmission.com (Kenny McCormack) - 2024-05-16 15:17 +0000
      Re: printing words without newlines? Ed Morton <mortonspam@gmail.com> - 2024-05-16 19:40 -0500

csiph-web