delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4AC4E962.8020307@gmail.com> |
Date: | Thu, 01 Oct 2009 18:39:46 +0100 |
From: | Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com> |
User-Agent: | Thunderbird 2.0.0.17 (Windows/20080914) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Assistance sought grepping log files |
References: | <274475 DOT 31177 DOT qm AT web30806 DOT mail DOT mud DOT yahoo DOT com> |
In-Reply-To: | <274475.31177.qm@web30806.mail.mud.yahoo.com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT 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 > fine. 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. cheers, DaveK -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |