Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] binary search of binary data
- Date: Wed, 29 Dec 2004 09:57:41 -0500
- From: Viktor Pavlenko <vvp@example.com>
- Subject: Re: [tlug] binary search of binary data
- References: <20041225205936.GA2199@example.com><87llbjj4xw.fsf@example.com><20041227145652.GC2199@example.com><87fz1rhy0m.fsf@example.com><20041228041814.GD2199@example.com><871xd9hezi.fsf@example.com>
>>>>> "SJT" == Stephen J Turnbull <stephen@example.com> writes: >>>>> "Edward" == Edward Wright <edw@example.com> writes: Edward> I use grep -ab for searching thru the file for text Edward> strings, but I couldn't see how to pass a binary search Edward> pattern to grep. Am I missing something simple here? SJT> That's not a grep problem, that's a shell problem!<0.9wink> SJT> I can think of a number of ways to deal with this. First, almost all SJT> shells/terminal drivers allow entry of binary characters in some way, SJT> for example use ^V<control character> for the low range and ALT-### SJT> for the high range. Some shells will interpret octal escapes for you, I use shell inside emacs (M-x shell), and it never interprets any special characters. Moreover, emacs allows you to enter control characters directly (thru ^Q combination), so you can simply write $ grep -a -b ^V^A input-file SJT> Unix rules, even when it sucks! $ echo $TERM dumb Emacs rules even when it sucks :) -- Viktor
- References:
- [tlug] binary search of binary data
- From: Edward Wright
- Re: [tlug] binary search of binary data
- From: Stephen J. Turnbull
- Re: [tlug] binary search of binary data
- From: Edward Wright
- Re: [tlug] binary search of binary data
- From: Stephen J. Turnbull
- Re: [tlug] binary search of binary data
- From: Edward Wright
- Re: [tlug] binary search of binary data
- From: Stephen J. Turnbull
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] coffee on keyboard.....again
- Next by Date: Re: [tlug] binary search of binary data
- Previous by thread: Re: [tlug] binary search of binary data
- Next by thread: [tlug] software patents in japan
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links