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

    using an external script in awk

    Ok i was just not so clear about the cmd structure... But i tried it with other external programms and i see that this works fine with every one of them THANKS a lot again!!!!
  2. theo67

    using an external script in awk

    PHV is it possible to explain to me a little bit your code? I am not sure about it... awk -F';' Fileseparator is ; (until here ok) [blush] But for the rest i supose what it "could" mean..
  3. theo67

    using an external script in awk

    [shocked] @PHV WOW 12 seconds!!!!! and the file was ready!! A big THANKS to all for your help!!!!!!! Those are the moments where i realise all the things i can NOT do [wink]
  4. theo67

    using an external script in awk

    Hi feherke, i runed for a few seconds your 2nd version and braked it. should i now type in the commandline only: [[ -f '/tmp/dosomething.cache/4567' ]] ???
  5. theo67

    using an external script in awk

    Hi PHV, using your code, i stopped the skript after a few minutes and opened the output file. I see the whole line but without the first "column".. That's the position where the 4 digits should be...
  6. theo67

    using an external script in awk

    oooh sorry.. i should refresh the site bevor posting :)
  7. theo67

    using an external script in awk

    @phv i get as output, my input file without the first "column" :)
  8. theo67

    using an external script in awk

    Hi Feherke and thank you so much for your help! the first field (first 4 digits) are not unique. "dosomething" is i binary and it takes this number and calculate a new one. The new number depends allways from the input. That means e.g. "dosomething 4567" gives allways 9878 as output. Is this...
  9. theo67

    using an external script in awk

    hmm i ralise now thats very slow... my file is 80 MB and the script runs since 3 hours.... I tested it with i small file and it worked fine but i did not realise that it takes so long if i have my orig file...
  10. theo67

    using an external script in awk

    Hi feherke, i think you are right... i am a newbie so i have to learn a lot!! And i am glad everytime i get an idea from people who have experience like you!! Thank you very much for the answer. I used it and it is exactly what i need... Theo
  11. theo67

    using an external script in awk

    Hello to all, i can not find a solution: i have a file file1.txt looks like 4567;9803298ß;38840 (over thousands and thousands Lines) And an external script "dosomething" Now i need to do the following stepps: 1. Open the file 2 Cut the first 4 digits 3. Use them as a parameter to call an...
  12. theo67

    awk "if not exists in (cat filename)"

    is it possible to put this in an IF request? the whole thing changed a little bit, and i have now to check, if the current line from fileone, whichis in access from awk, if the substring has a value which exists in filetwo, then i have to do something.... so i tried over ... cat fileone | awk...
  13. theo67

    Popup message

    ..... StringBuffer output = new StringBuffer(); ... output.append("bla bla") .. String result= output.toString(); retourn result;
  14. theo67

    Popup message

    Wonderfull! It works!. I just need one last detail: The retourn of testbean.result is a String-"Message" which i would like to have on the alert Window. If i type alert("<%=testbean.result(param1,param2,param3) %>) this runs the methode, but i get not the "return". If i add a output.println...
  15. theo67

    Popup message

    Something like this yes. Just i need that, the message for this "alert" Box, should be the retourn of a method.. So is it possiple to run alert like. alert("<% testbean.result(param1,param2,param3) %>) ????????
  16. theo67

    Popup message

    Hello to all, i hope someone can help me. I am using Java 1.6 and Tomcat 6. I have a jsp file where i call a method like this: CODE --> java <tr><td align="center" valign="top" colspan="2"> <br> <table border="0" cellpadding="20" cellspacing="0" ><tr><td valign="top"> <table border="0"...
  17. theo67

    jsp - abord if boolean is true

    Thanks Dian.. exactly that [afro]
  18. theo67

    jsp - abord if boolean is true

    hello Team, i run Tomcat, using jsp Files. I would like to have a check for a global boolean. I have a global java boolean "error_code", and if this is true, then i would like to redirect to a specifig site e.g http://something.. I have the boolean, i think it will start like this <% if...
  19. theo67

    awk &quot;if not exists in (cat filename)&quot;

    n contains the entries from filetwo=$1.. and the second "n" in (substr($0,10,3) in n) reffers to fileone ok i have it.. Thanks!!
  20. theo67

    awk &quot;if not exists in (cat filename)&quot;

    Hi FlorianAwk.. thanks a lot for your solution too! REGEXs are impressing me everytime :) @PHV for me to understand it better.. what exactly is the funktion of ++n? I can imagine what, but i could not find an examble which i can say i could understand to 100% and be absolutely sure about the...

Part and Inventory Search

Back
Top