Groups | Search | Server Info | Login | Register


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

awk script problem

From Robert Peirce <bob@peirce-family.com>
Newsgroups comp.sys.mac.programmer.misc
Subject awk script problem
Date 2019-12-17 14:39 -0500
Organization Aioe.org NNTP Server
Message-ID <qtbau9$1kh2$1@gioia.aioe.org> (permalink)

Show all headers | 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