Solved

Awk Compiler

Posted on 2004-10-15
9
1,631 Views
Last Modified: 2008-01-09
Hey guys, I am looking for an awk compiler. Can anyone help? Regards.
0
Comment
Question by:varuncvarada
  • 4
  • 3
  • 2
9 Comments
 
LVL 21

Expert Comment

by:MogalManic
ID: 12325705
0
 
LVL 15

Expert Comment

by:efn
ID: 12329985
0
 
LVL 1

Author Comment

by:varuncvarada
ID: 12389923
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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 15

Expert Comment

by:efn
ID: 12390198
0
 
LVL 21

Expert Comment

by:MogalManic
ID: 12390568
Tawk is a comercial program
0
 
LVL 21

Expert Comment

by:MogalManic
ID: 12472955
Here is an open source solution.  It is an AWK to C converter
http://awka.sourceforge.net/
0
 
LVL 1

Author Comment

by:varuncvarada
ID: 12489494
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
 
LVL 15

Accepted Solution

by:
efn earned 100 total points
ID: 12489666
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
 
LVL 21

Expert Comment

by:MogalManic
ID: 12489690
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
This is about my first experience with programming Arduino.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question