Search Results

Search: Posts Made By: Pow3R
4,384
Posted By Pow3R
---------- Post updated at 05:24 AM ----------...
---------- Post updated at 05:24 AM ---------- Previous update was at 05:23 AM ----------



Il try

---------- Post updated at 05:51 AM ---------- Previous update was at 05:24 AM ----------
...
4,384
Posted By Pow3R
Now u give a date 5-3-2009. But i want that the...
Now u give a date 5-3-2009. But i want that the user can give a input date and the awk filter runs that date.
4,384
Posted By Pow3R
4-3-2009 10:51:33 MSFTPSVC Warning None 100 N/A MS...
4-3-2009 10:51:33 MSFTPSVC Warning None 100 N/A MSDNAA The server was unable to logon the Windows NT account 'test' due to the following error: Logon failure: unknown user name or bad password. The...
4,384
Posted By Pow3R
Is there someone that can help me with it? I...
Is there someone that can help me with it?

I just need to save the userinput and run it though the AWK filter.

The AWK filter
"$6 == "1111" && $1 ~ $date {n++}; END{print n}" c:\log.txt
...
4,384
Posted By Pow3R
Thank u for the tip. I'm working it out,...
Thank u for the tip.

I'm working it out, but i can't get further then this.

gawk.exe -v dte_filter="$1"; "$6 == "1111" && $1 ~ $dte_filter {n++}; END{print n}" c:\log.txt

If i remove the...
4,384
Posted By Pow3R
Gawk filter
People,

Ive been trying to make a script but i just cant figure it out.

Problem/ Case:

I have a logfile.txt that contains data. The only two things i need to filter on = $1 (date), $6...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 09:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy