On Thu, Oct 1, 2009 at 1:39 PM, Dave Korn <dave.korn.cyg...@googlemail.com> 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) 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. > 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