[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1688
  • Last Modified:

Awk Compiler

Hey guys, I am looking for an awk compiler. Can anyone help? Regards.
0
varuncvarada
Asked:
varuncvarada
  • 4
  • 3
  • 2
1 Solution
 
MogalManicCommented:
0
 
varuncvaradaAuthor Commented:
Unfortunately the link MogalManic gave me didn't have a link to donwload the awk compiler. And the link efn gave me had no link that was working!!!
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
efnCommented:
0
 
MogalManicCommented:
Tawk is a comercial program
0
 
MogalManicCommented:
Here is an open source solution.  It is an AWK to C converter
http://awka.sourceforge.net/
0
 
varuncvaradaAuthor Commented:
Actually, these websites have the awk files, but when I try to open them, windows does not recognize the files. When I tried it with perl, it worked because it had an executor, which was PERL Command Line Interpreter. What is it for AWK?
0
 
efnCommented:
awk is also a command line interpreter.  It may be called gawk or something else, depending on what program you use.  It's sufficiently obscure and UNIXy that there may not be a Windows package that sets up file associations for you.  (File associations are what find the right program to process a file automatically when you open it.)

You can download a command-line interpreter for Windows from

http://cm.bell-labs.com/cm/cs/who/bwk/awk95.exe

Then you can run it from a command prompt.  You can give it the name of a script to run as a command line argument.

--efn
0
 
MogalManicCommented:
To run an awk program it can either be from the stdin or from a file.  Here is a simple awk program that counts the lines of the input stream
lc.awk:
{
    lineCount++;
}
END {
   print lineCount;
}

To run it using GAWK, you would use the following:
gawk -f lc.awk testFile.txt

which would process testFile.txt and count the # of lines.
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now