This is what I do in windows:
call this with "-ffilename2.txt"
BEGIN {
print "BEG TIME......... "strftime("%H:%M:%S") #I like to know the time
//load array of fileone.txt this is ok for about 800,000 records on my pc anyway
while ( getline fileonerec < "c:/fileone.txt") #...
I thank you for your quick response. I am the 3rd guy to work on this website so there is some code that I have no clue how is working. I do admit that setting the variable then checking if it is set... not too smart but this program has had so many changes ( like the first guy used "smarty" AND...
//I call this page either with an "index.php?a=calc&orderid=$1&raid=$2
//or index.php?a=calc&pack=$1
// it is simple if there is no 'pack' in the call get $packId from the database
// for some reason the line //1 this line
// gets run even if $raid is not set
// does parent::getHTTPVars create a...
I use autoit to create a front end then call awk
from the program.
the gui is easy to learn and you might decide to
write your whole program in autoit which is kind of
like basic.
anything more fancy than a small gui then you should
go into one of the free c++ compilers like dev-c++ plus wxwidgets
this is how I call one of my awk scripts.
first my GAWK interpreter is in a wierd place:
C:\GAWK\g31\BIN\gawk.exe
yours might be in a different place next I created a few functions to handle
addresses and names well for this program I need my "CLname.awk" functions
(these are just functions...
c = a,b;
"," is an operator so first evaluate " c = a " then evaluate the 2nd part of the statement "b".
d = (a,b);
first evaluate the stuff in the parentesis "( 2,6)"
From "THE C PROGRAMMING LANGUAGE" K&R:
"A pair of expressions separated by a comma is evaluated left to right, and the type...
here is a working program. I didnt flowchart it like I should have but the program works. it will take a file.
you only have to change "minnum" ( short for minimum number,
I know it was a Stupid name.) and the "key" field. The output will be "file1" and "file2"
# This program will take a file...
Well as it turns out this program will not work. I figured I will take about an hour and fix it but as I see the logic I will have to actually make a flowchart!!!
Let me fix it then post your fixes to the working program.
Norm.
I deal with names and addresses all the time and I use some old cobol programs. I wanted to do this in awk but my cobol background shows; anyway the program reads a file ( about 20,000 records ) it is a fixed lenght record so I use substr() to get the key, now the trick is that we want to keep...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.