|
|
Question : Parsing log files with Perl/AWK
|
|
I have a 24 Meg Log file that contain a significant number of system entries. I want to generate a file that contain only those entries that had the words "Cannot" or "No Entry" found in them. Because of the sheer size of this log file I can only imagine a perl script written using AWK statements would work here.
input_log_file = c:\temp\MTSERV\LOG.01.05032007.mtserv.htm output_log_file = c:\temp\MTSERV\LOG.01.05032007.mtserv.txt keywords: "Cannot" or "No Entry" Environment: Perl for Windows XP
|
Answer : Parsing log files with Perl/AWK
|
|
awk "/Cannot/||/No Entry/{print}" < c:\temp\MTSERV\LOG.01.05032007.mtserv.htm > c:\temp\MTSERV\LOG.01.05032007.mtserv.txt
|
|
|
|