Solved

Awk Compiler

Posted on 2004-10-15
9
1,622 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
 
LVL 15

Expert Comment

by:efn
ID: 12390198
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This is an explanation of a simple data model to help parse a JSON feed
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…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

867 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now