I have a binary file and I need to count occurrences of certain string in this file or even list then with offsets. In windows or Linux (for this task I use Fedora 12 and w2k).
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
On Linux with GNU grep:
Example:
Explanation of the parameters:
To count the occurrences add |
|||||||||
|
|
Agent Ransack - Free File Searching Utility
|
|||
|
In Linux, you can use In Windows, you can use the |
|||
|

strings -a filename | grep string | wc -l. – ott-- May 15 '12 at 14:38