At 21:38 2008-01-29 +0100, M. Fioretti wrote:
excellent point, sorry I forgot the nature of the cache file. If I
look at it with strings I only get correct headers. The question is,
why does grep work in those recipes, then? Isn't it confused just as
"more" is?
grep can search binarily. The comments in the code of mine which you're
using actually indicate that grep is compatible with the files.
more _assumes_ text. it's the only sort of data you should be expected to
be paginating..
try 'hexdump' instead. Put the following into a file, name it "dump.hex":
"%08.8_ax " 16/1 "%02x "
"\t" "%_p"
"\n"
(all three of those lines, with the quotes).
then, invoke:
hexdump -f dump.hex ignore.cache
That'll get you a more sensible dump of the contents.
You should note that the file is terminated by two nulls.
I would also suggest that if your 'more' is gobbling up characters in the
paginated output (say, the character immediatley following a null), then
I'd consider it BROKEN, though perhaps it is your terminal configuration.
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail