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 IamaSherpa 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: *

  • Users: mawk
  • Order by date
  1. mawk

    How do you invoke unix command within awk

    I have numerous files that need a fold -80 commmand performed for each file and then output to a new file_name for each file. I would like to include the fold step within awk with the pipe command and fold options along with some other steps for each file. Is this possible within the awk script?
  2. mawk

    help with script

    CaKiwi, Do you get a few points passed to output that fall inside the polygon file? When I run it, I get nothing output. Thanks
  3. mawk

    help with script

    CaKiwi, I get a syntax error on line 13 on the for statement. It doesn't like the i < npol; Any ideas? Thanks
  4. mawk

    help with script

    Here it is. Thanks vlad. BEGIN { if (!fn) fn = &quot;polygon_file.dat&quot; while ((getline < fn) > 0) { xp[$1] yp[$2] } } { x=$3; y=$4; for (i = 0; j = npol-1; i < npol; j = i++) { if ((((yp[i]<=y) && (y<yp[j])) || ((yp[j]<=y) && (y<yp[i]))) &&...
  5. mawk

    help with script

    Thanks for the help. Here's what I have so far using the c code. It still needs some help but not sure what to do. I'm running it by gawk -v fn=&quot;polygon_file.dat&quot; -f polygon_edit.gawk data_file.dat and here's the awk script so far. I only want to print complete records that a xy...
  6. mawk

    help with script

    I have a file that contains data with xy coordinates such as: 111 1 125000 9100000 111 2 130000 9150000 222 1 140000 9150000 222 2 155000 9200000 333 1 210000 9190000 333 2 110000 9010000 333 3 125000 9110000 444 0 130000 9150000 The 3 and...

Part and Inventory Search

Back
Top