Hello Again,
I got so good answer the last time I asked her that I think I try again :)
I’m trying to make a program that is searching text for 10 seconds and
Then print what it found from the stored arrays.
But I can’t seam to find any suitable command to use for timing
=====
Awk ‘...
YES, tanks I have been trying with almost the same ting but have not got it to work,
But I have never had this print “%s”,$9 there before.
What do “%s” mean?
But anyway tanx for a good solution :)
Sorry but the hole program looks like this
nc some.server.bah port |
awk '$5~/Argument1/ { printf $9 } /Argument2/ {if ($10 == "something") print " Here is something"
if ($10 == "Something else") print " Here is something else"; if ($10 == "Even more stuff") print " Ooh look here" } ’
Okay not a programmer even to it says so above but did not find a newbe tag :)
Hello, I’m making my first small awk program and have a small problem with getting it to work as I want
I’m sorry if this question have been answered before(It probably have) but I tried to search but didn’t know...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.