Hi guys,
I'm trying to print the first occurence of an input line in a log file using an if statement and an index function. Check it out.
if (index($0,"MS Position Req(msgLen=23)")>0 ){
my_string = $0;
split(my_string,time,":");
substr($1,2,7);
split($1,t,":")...
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.