Path: csiph.com!aioe.org!.POSTED.TM69bLPybSMbWwLXC7VpXw.user.gioia.aioe.org!not-for-mail From: Robert Peirce 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: 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 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 "/ /".