🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #4141

AWK problems

#4141
From: David Megginson
Date: Tue, 19 Sep 1989 11:11
17 lines
1291 bytes
I have been trying out the new AWK for the ST, and I have a couple of
problems.  First, when I change to record separator to, say, ".", AWK
takes every newline as a field.  According to the AWK book, "^n" should
always be a field separator, no matter what RS and FS are set to.  I have
tried removing CRs and removing LFs, but to no avail.

Second, AWK can use a program on its command line only when there are
no spaces in the program.  awk '{print}' ... or awk '/person/' ...
word, but not awk '{print $2}'.  I have tried running it from a CLI and
from the TTP dialog.  Is there any way to keep AWK from splitting the
program into fields when it processes the command line?

I would appreciate any help.  Please respond directly as well as to the
newsgroup, since I read the news on BITNET and have to wait quite a few
days for new messages.  Thanks.

David Megginson (MEGGIN@VM.EPAS.UTORONTO.CA)
Technical Details
Message-ID: <8909191123.AA11154@ucbvax.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!vm.epas.utoronto.CA!MEGGIN

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!vm.epas.utoronto.CA!MEGGIN
From: MEGGIN@vm.epas.utoronto.CA (David Megginson)
Newsgroups: comp.sys.atari.st
Subject: AWK problems
Message-ID: <8909191123.AA11154@ucbvax.Berkeley.EDU>
Date: 19 Sep 89 11:11:06 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The Internet
Lines: 17