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 the time - however would it be possible to use something like
{
if ( $0 ~ /time - 1 second/ )
lines2skip= do to next line
for (i=1; i <= lines2skip; i++)
getline
print
}
anyone know how to modify this? Sorry if this is somewhat vague....
Lambros.
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 the time - however would it be possible to use something like
{
if ( $0 ~ /time - 1 second/ )
lines2skip= do to next line
for (i=1; i <= lines2skip; i++)
getline
}
anyone know how to modify this? Sorry if this is somewhat vague....
Lambros.