This is the mail archive of the
mailing list for the Cygwin project.
Re: Assistance sought grepping log files
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 01 Oct 2009 18:39:46 +0100
- Subject: Re: Assistance sought grepping log files
- References: <email@example.com>
Larry W. Virden wrote:
> For example, I've copied some of the "12 hive" tracing logs from IIS (or
> maybe it is SharePoint... I'm still struggling to figure all this out) into
> a directory to which I have access.
> Now I'd like to crunch those logs to see the errors, etc.
> awk and grep, however, do not seem to find anything in the files.
> The weird thing is that when I use the "more" command, the file looks just
You could use the "od" utility to see what's actually going on in these
files. My guess would be that there are embedded ascii NULs that are causing
all the string processing routines in awk/grep etc. to fail. If that's the
case, running them through "tr -d '\0'" might help.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple