Path: 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 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)