bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gawk] Continuation Character not recognized in GAWK 4.1


From: Rush, Scott (CS COE)
Subject: Re: [bug-gawk] Continuation Character not recognized in GAWK 4.1
Date: Tue, 24 Feb 2015 19:25:52 +0000

Super!

I'll give that a try and I'm sure it will work for me as it always has for you.

Thanks again.

BTW - I absolutely love GAWK. It's the one-and-only-one program I cannot live 
without!

Scott

-----Original Message-----
From: Eli Zaretskii [mailto:address@hidden 
Sent: Tuesday, February 24, 2015 12:21 PM
To: Rush, Scott (CS COE)
Cc: address@hidden
Subject: Re: [bug-gawk] Continuation Character not recognized in GAWK 4.1

[Please keep the list address on the CC.]

> From: "Rush, Scott (CS COE)" <address@hidden>
> Date: Tue, 24 Feb 2015 17:29:42 +0000
> 
> For the other problem, that is easily recreated. Create a text file that is 
> empty (I called it Blank_File.txt) and another file called Data_File.txt with 
> the following contents:
> 
> This is a line
> This line says "Hello World!"
> This line says "Hey World!"
> This line says "Goodbye world"
> This is the last line
> 
> Then create a gawk program (I called it System_Call.awk) with the following 
> contents:
> 
> END {
>  cmd = "gawk /World/ Data_File.txt"
>  system(cmd)
> }
> 
> Then from the CMD prompt, type the following:
> 
> >gawk -f System_Call.awk Blank_File.txt
> 
> From my XP 32-bit PC running GAWK Version 3.0.3, I get the following results:
> 
> This line says "Hello World!"
> This line says "Hey World!"
> 
> However, doing the same thing on my new Win7 64-bit PC, I get the following 
> results (BTW - I've placed gawk.exe in the Windows\System32 folder and that 
> folder is in the PATH environment variable):
> 
> 'gawk' is not recognized as an internal or external command, operable 
> program or batch file.

Don't put gawk.exe in Windows\System32 directory, that directory is virtualized 
for 32-bit programs.  For details, see

  
https://msdn.microsoft.com/en-us/library/windows/desktop/aa384187%28v=vs.85%29.aspx

To avoid all kinds of complications, keep gawk.exe in a directory outside of 
the C:\Windows\ hierarchy, just put that directory on your Path.  (I generally 
keep Gawk and other related programs on a non-system drive, to avoid bumping 
into protected directories and the UAC elevation prompts that are caused by 
that.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]