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 Mike Lewis 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: lambros
  • Order by date
  1. lambros

    Java & LDAP

    Hi, Does anyone know any good source of information to do the followingl; I wish to write a Java frount end to manage users in LDAP Directory Server, I know there is software availible to achieve this - however I need to write my own application - any ideas on how to start this?
  2. lambros

    Line Number Question

    Vlad, Thanks for all your help & quick responses, I'd have been some time figuring that out on my own. L.
  3. lambros

    Line Number Question

    Hi, Just one more question; for(ind in termsARR){ system("sed -n 'indp' log") } How can I do this? I'm trying to get the number from the array & assigning it to ind & using Vlads command from there.
  4. lambros

    Line Number Question

    Hi, Given the line number in a file; how is it possible to return the line? L.
  5. lambros

    loop

    Hi, at the moment I am writing some code; such as follows.... How can I get the following code to process until I find every line containing Test, at the moment the prog. is working sequentially - ie from top to bottow, which I don't want... { i=1 while( $0 ~ /TEST/){ print FNR >...
  6. lambros

    new question - awk

    Thanks Marsd, I'll play with it a bit.. one question - what is the syntax of the END { 'tail -<start_number> <filename> | head -<end_number-start_number>' } i've tried; system(&quot;tail etc...&quot;) but script hangs...
  7. lambros

    new question - awk

    Yeah, perhaps it was a little incomprehensible.... sorry, I'll try again... I'm going some testing, and I wish to find out the best way to match the following line line containing the following strings - /Error/ and /Invalid/ - as this is the easiest thing to match. When I have found these...
  8. lambros

    new question - awk

    I have two lists of numbers matching the line values I wish to match using awk.... How do I write a scritp to start at the values given by the list containing - ( These are the Values I need to match ) 5103 1485 5663 4260 Now I need to decrement backwards until I hit the the closest value...
  9. lambros

    new question.....

    I have two lists of numbers matching the line values I wish to compute.... How do I write a scritp to start at the values given by the list containing 5103 1485 5663 4260 and decrement backwards until I hit the first value contained by the value in the list; 5087 2691 5691 4234 5256 4398...
  10. lambros

    Line number

    Hi, If I have something like - if ($0 ~ /Error/) how can I assign this line a line number; is something like - nl -nrz -v5 -i5 possible to do to this?
  11. lambros

    awk syntax question

    Hi all, is the following syntax correct in awk - I wish to test if the line $0 matches the test /invalid credentials/ but does not match the variable /test/? if($0 ~ /Invalid credentials/ !~ /test/){ print $0 } Lambros.
  12. lambros

    Array

    Hi, I am doing the following; split($1,t,&quot;:&quot;) - using split function to add time to arroy j = t[4]+01 - adding 1 second to the original time newtime[n]=t[2]&quot;:&quot;t[3]&quot;:&quot;j - the new time is set to variable newtime timeARR[a++]=newtime - this does not work, I...
  13. lambros

    awk time

    Hi all, How do I write a loop / statement to subtract 1 second from this; 05/Nov/2002:15:10:13 Thanks, L.
  14. lambros

    awk log file script

    Hi, I have written an awk script to go through a log file, pick out items such as invalid user ID etc based on time stamp - it works to a point, however if there is a difference in 1 second in time between the user authenticating and trying to authenticate it throws out the script. I can get...
  15. lambros

    DataSource Question

    Thanks again meadandale, Now do you know where I can get some tutorials , source code, info on this topic?
  16. lambros

    DataSource Question

    Thanks meadandale, In that case what is the best method to publish a log file over the web? I'd like to use JSP / servlets, as I don't just want to serve the plain log file.....
  17. lambros

    Awk Command

    Thanks marsd
  18. lambros

    DataSource Question

    Hi, Is it possible to use a textfile as a data source? If yes, how do I do this... L.
  19. lambros

    Awk Command

    req x2/f0909 > 111 Hi, Does anyone know the command I can use to get this value above? I've tried; if ( $0 ~ /req[ <tab>]*>[ <tab>]*208/ ){ but I think it doesn't get it out because of the characters, is there some wild card I can use in awk for this, I need a wild card as the x2/f0909 is a...
  20. lambros

    regular expression

    Hi CaKiwi, I've also tried this & it works to a point, however if I elaborate on it & do if ($0 ~ reg[i] && /78/) it doesn't return anything, even thought this works on the command line ( when I insert the values returned by print reg... do you know why this is?

Part and Inventory Search

Back
Top