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

  1. holaqtal

    alternate ping path

    Is there a way to modify the path that my ping command takes? What I'm trying to do is start an audio conference using Microsoft Portrait without getting such high delays. When I do tracert (final user's ID) I see that my datagrams are going from Madrid to london, to france,then back to Madrid...
  2. holaqtal

    how to make a reference to an array

    sorry, didn't work, the compiler says: incompatible types in assignment of `const int*' to `int[20]'
  3. holaqtal

    how to make a reference to an array

    It should be quite simple, but i can't make it work: for example: unsigned int num[20]; and i want to make a reference the array 'num' in the function 'setter', is this how i'm supposed to do it? void setter(const unsigned int& nn[20]){num=nn;}; I get the error: 'nn is an array of...
  4. holaqtal

    getline inside a do-while statement

    i'm trying to basically read every line of a file, doesn't really matter in what order, and look for two fields that match a pattern (dest=M,type=N) and return the third field, something like: dest1 type1 .99 dest2 type2 2.34 dest3 type3 .50 To do this I'd have to be able to go back to the...
  5. holaqtal

    USING DIFFERENT FILES WITHIN THE SAME AWK SENTENCE

    Hey, thanks Cakiwi. That's exactly what i needed, i didn't realize that when calling getline I could print just a field from that line, i thought i had to print the whole thing Thanks again
  6. holaqtal

    USING DIFFERENT FILES WITHIN THE SAME AWK SENTENCE

    sorry, that's not it. I'm pretty certain i have to use the FILENAME variable somehow. what you're doing is sending the first field of "myfile1" and writing it into "myfile2" and then printing the first field of "myfile1". What i want to do is be able to modify one...
  7. holaqtal

    USING DIFFERENT FILES WITHIN THE SAME AWK SENTENCE

    all right, here's the problem awk ' { FILENAME=="myfile2"{ print $1 } print $1 }' myfile1 so the two prints should be different. The main problem is that i don't know if i can modify the FILENAME variable like that or if the error is in the syntaxis, or what could i do to...

Part and Inventory Search

Back
Top