X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <4AC4E962.8020307@gmail.com> References: <274475 DOT 31177 DOT qm AT web30806 DOT mail DOT mud DOT yahoo DOT com> <4AC4E962 DOT 8020307 AT gmail DOT com> Date: Thu, 1 Oct 2009 13:45:19 -0400 Message-ID: Subject: Re: Assistance sought grepping log files From: mike marchywka To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Thu, Oct 1, 2009 at 1:39 PM, Dave Korn wrote: > 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) i= nto >> 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 ju= st >> fine. > > =A0You could use the "od" utility to see what's actually going on in these > files. =A0My guess would be that there are embedded ascii NULs that are c= ausing > all the string processing routines in awk/grep etc. to fail. =A0If that's= the > case, running them through "tr -d '\0'" might help. > It sounds like he may be unfamiliar with regex but yes it could be unicode = or something. if you see zero every other character that will be apparent. -- -- 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