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

how to find lines containing two null characters?



I want to do what

egrep '\000\000' files...

would do if egrep understood \NNN octal escape sequences. Is there
something I'm missing in the egrep man page that would permit this? If
not, is there some package among the bazillions of Debian packages
that contains a program that will do this? (I've looked, but found no
suspects.)

I'm not looking for just any way to do this, since I have a way to do
it (emacs tags-search). I'm wondering if there's a vanilla
command-line alternative.

(A note for the over-eager respondent: since I'm searching for NULs,
and command-line arguments are NUL-terminated, there is no way to pass
the NULs as a (normal) argument. Period.)
-- 
I get my monkeys for nothing and my chimps for free.
http://www.clark.net/pub/hermit/


Reply to: