[Top][All Lists]

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

suggestion for binary search output

From: Walt Pawley
Subject: suggestion for binary search output
Date: Thu, 21 Feb 2008 10:36:18 -0800

I've had several occasions to want to extract the byte-offset
of a text string in a binary file. The various versions of grep
I've used won't provide that unless the file is treated as text
- printing a line indicating that the string is present.

Perhaps it would make sense to check for the -b (--byte-offset)
flag being present before that single line of output and
including the byte offset of the found string as part of the
message if the flag is set.

Walter M. Pawley <address@hidden>
Wump Research & Company
676 River Bend Road, Roseburg, OR 97470

reply via email to

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