[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
Geoffrey> Michael Hirsch wrote:
>> dd if=filename bs=1 count=200 skip=25 will output the 200 bytes
>> starting at byte 26, I believe. Capture that output and feed
>> it to grep.
Geoffrey> I don't know, the problem with this is there could be
Geoffrey> some unusual characters in that data, newlines, quotes
Geoffrey> and such that would likely confuse grep.
Yeah, you'd want fgrep so that it doesn't interpret anything as a
meta character, but that's also going to encounter problems if there's
any NULs in your search string.
But yeah this is something that'd be fairly easy in perl. I think I
even had a golf'd obfuscated one lying around somewhere, but I can't
find it at the moment. You can find something that might be helpful
at perlmonks here:
<a rel="nofollow" href="http://perlmonks.org/index.pl?node_id=319874">http://perlmonks.org/index.pl?node_id=319874</a>
--
Fletch | "If you find my answers frightening, __`'/|
fletch at phydeaux.org| Vincent, you should cease askin' \ o.O'
| scary questions." -- Jules =(___)=
| U
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00289" href="msg00289.html">[ale] Binary Matching</a></strong>
<ul><li><em>From:</em> fletch at phydeaux.org (Fletch)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00231" href="msg00231.html">[ale] Binary Matching</a></strong>
<ul><li><em>From:</em> atlantalinuxenthusiast at gmail.com (Mister Anonymous)</li></ul></li>
<li><strong><a name="00233" href="msg00233.html">[ale] Binary Matching</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
<li><strong><a name="00239" href="msg00239.html">[ale] Binary Matching</a></strong>
<ul><li><em>From:</em> atlantalinuxenthusiast at gmail.com (Mister Anonymous)</li></ul></li>
<li><strong><a name="00244" href="msg00244.html">[ale] Binary Matching</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
<li><strong><a name="00248" href="msg00248.html">[ale] Binary Matching</a></strong>
<ul><li><em>From:</em> atlantalinuxenthusiast at gmail.com (Mister Anonymous)</li></ul></li>
<li><strong><a name="00264" href="msg00264.html">[ale] Binary Matching</a></strong>
<ul><li><em>From:</em> mdhirsch at gmail.com (Michael Hirsch)</li></ul></li>
<li><strong><a name="00271" href="msg00271.html">[ale] Binary Matching</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00287.html">[ale] Thunderbird vs. Dovecot: "imap new mail checking"</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00289.html">[ale] Binary Matching</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00271.html">[ale] Binary Matching</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00289.html">[ale] Binary Matching</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00288"><strong>Date</strong></a></li>
<li><a href="threads.html#00288"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>