Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

line too long

Status
Not open for further replies.

ng1

Technical User
Aug 22, 2007
39
US
{print "SUBSET MEMBER-FILE.CONTROL-FLAGS(62)='1' OR MEMBER-FILE.CONTROL-FLAGS(65)='1' OR MEMBER-FILE.CONTROL-FLAGS(75)='1'"}

I have the above line in an awk script. I put it on one line, but it is too long. I need to put it on 2 lines. I tried using a semicolon like this:

{print "SUBSET MEMBER-FILE.CONTROL-FLAGS(62)='1' OR &;
MEMBER-FILE.CONTROL-FLAGS(65)='1'"}

but got this error:

awk: The string SUBSET MEM cannot contain a newline character.
The source line is 2.
The error context is
{print "SUBSET MEMBER-FILE.CONTROL-FLAGS(62)=1 OR &; >>>
<<<
syntax error The source line is 3.
awk: The statement cannot be correctly parsed.
The source line is 3.
awk: There are 2 missing } characters.

Is there a way I can put this on 2 lines?
 
This perhaps:

Code:
{print "SUBSET MEMBER-FILE.CONTROL-FLAGS(62)='1' OR[red]",
       "[/red]MEMBER-FILE.CONTROL-FLAGS(65)='1'"}

HTH,

p5wizard
 
That did the trick!!

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top