Deutsch   English   Français   Italiano  
<v1rsg2$37eqd$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: David Chmelik <dchmelik@gmail.com>
Newsgroups: alt.comp.lang.awk,comp.lang.awk
Subject: Re: printing words without newlines?
Date: Mon, 13 May 2024 02:04:50 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <v1rsg2$37eqd$1@dont-email.me>
References: <v1pi7c$2b87j$1@dont-email.me>
	<e0be0c38-e14e-45ba-ac87-5e2e4bd4f5cd@scorecrow.com>
	<v1qblf$solc$1@news.xmission.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 13 May 2024 04:04:56 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="80c8003b504caa34e7ee7bc79149bb10";
	logging-data="3390285"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX188inDrVP1Dn4dcj9Vy8G26VcefZuihyWY="
User-Agent: Pan/0.158 (Avdiivka; 6a11104e)
Cancel-Lock: sha1:1jSG1MF5xnv5cZmZviGcVrD1kG0=
Bytes: 2167

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.