Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.programmer.misc > #221

awk script problem

Path csiph.com!aioe.org!.POSTED.TM69bLPybSMbWwLXC7VpXw.user.gioia.aioe.org!not-for-mail
From Robert Peirce <bob@peirce-family.com>
Newsgroups comp.sys.mac.programmer.misc
Subject awk script problem
Date Tue, 17 Dec 2019 14:39:54 -0500
Organization Aioe.org NNTP Server
Lines 10
Message-ID <qtbau9$1kh2$1@gioia.aioe.org> (permalink)
NNTP-Posting-Host TM69bLPybSMbWwLXC7VpXw.user.gioia.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.3.0
X-Mozilla-News-Host news://nntp.aioe.org:119
X-Notice Filtered by postfilter v. 0.9.2
Content-Language en-US
Xref csiph.com comp.sys.mac.programmer.misc:221

Show key headers only | View raw


I'm way out of practice but I'm trying to scroll through a text file and 
print any line that contains "Location".  This ought to work but 
doesn't.  I'm missing something really basic!

awk '{
	/*Location*/ { print }
}' IN > OUT

the "{" in "{ print }" produces a syntax error.  It does this no matter 
what is in "/ /".

Back to comp.sys.mac.programmer.misc | Previous | NextNext in thread | Find similar


Thread

awk script problem Robert Peirce <bob@peirce-family.com> - 2019-12-17 14:39 -0500
  Re: awk script problem Bo Lindbergh <blgl@stacken.kth.se> - 2019-12-18 15:31 +0100
    Re: awk script problem Robert Peirce <bob@peirce-family.com> - 2019-12-21 08:48 -0500

csiph-web