bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cannot searh MessengerPlus xhtml chat logs


From: Wuhtzu
Subject: Cannot searh MessengerPlus xhtml chat logs
Date: Sun, 25 Apr 2010 02:36:10 -0700 (PDT)

Hi everyone

Forgive me if my possible lack of knowledge, but I've come across something
strange using GNU grep 2.5.4 with Windows 7
(http://gnuwin32.sourceforge.net/packages/grep.htm).

I was  rying to search xhtml chat logs generated by MessengerPlus! Live v.
4.83.0.376 but I have been completely unable to do so. Trying to search for
something a little more complicated I came to s dead stop trying just this:

grep -ic td *.html

All the xhtml files in the current directory was listed but with count 0
even though they contain hundreds of td-tags. In order to get matches within
a file I had to open it, copy it's content to a new file and save it again.
Then it matched just as it's supposed to.

Two file samples are available here:

Original chat log. Not able to match anything:
http://wuhtzu.dk/random/posts/ex-april-2009.html

Content copied to a new file and saved. Able to get matches:
http://wuhtzu.dk/random/posts/ex-april-2009-copy-resave.html

Even after downloading the files again from the above locations I'm only
able to get matches from the copy and resaved file.

I notice that the files have different sizes. The original file is 8298
bytes compared to the resaved 4078 bytes. So even though the files are
identical with respect to normal readable characters they clearly differ
with respect to something else - line terminators, newlines or similar.

But why is that effecting grep and is it supposed to?

If this is not a bug / unintended behavior and you guys right away spot a
mistake I've made I've of course be glad to hear about it.

Best regards
Wuhtzu


-- 
View this message in context: 
http://old.nabble.com/Cannot-searh-MessengerPlus-xhtml-chat-logs-tp28355106p28355106.html
Sent from the Gnu - Grep mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]