Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. normeus

    for loop doesn't execute

    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") #...
  2. normeus

    my if() statement is not working any ideas?

    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...
  3. normeus

    my if() statement is not working any ideas?

    //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...
  4. normeus

    awk GUI?

    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
  5. normeus

    Passing variable to GAWK from BAT file??

    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...
  6. normeus

    Compiler

    for a C compiler (not C++) http://www.smorgasbordet.com/pellesc/
  7. normeus

    Simple C program output

    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...
  8. normeus

    Using system(&quot;command&quot;)

    This works on win xp (note the escaped quotes) system("echo 'test' | \"C:/Program Files/GnuWin32/bin/gawk\" {print $0}")
  9. normeus

    3 records per key

    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...
  10. normeus

    3 records per key

    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.
  11. normeus

    3 records per key

    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...

Part and Inventory Search

Back
Top