Re: asm grep
- From: Robert Redelmeier <redelm@xxxxxxxxxxxxxxx>
- Date: Fri, 28 Dec 2007 00:57:14 GMT
Charles Crayne <ccrayne@xxxxxxxxxx> wrote in part:
Robert Redelmeier <redelm@xxxxxxxxxxxxxxx> wrote:
So do it the long way and mask the case bit
if that is acceptable for non-alpha too:
Which it is not, even in ASCII text files, unless you don't mind such
bugs as CR and LF matching punctuation characters. A better solution
for the ASCII character set would be to use a translate table.
Certainly you can use XLAT or more efficient equivalents.
However, I _did_ say, "if that is acceptable for non-alpha ..."
I'm not sure it is not for a minimalist rescuedisk grep.
By masking, lowercase will get stripped to uppercase, punctuation
and digits to things like DLE and <space> to NUL. This might
produce some false matches, but will _not_ skip true matches.
I don't mind this for my uses of grep. Actually, I'd like an option
of stripping the high bit without having to run it through `tr`.
-- Robert
.
- Follow-Ups:
- Re: asm grep
- From: Frank Kotler
- Re: asm grep
- References:
- asm grep
- From: Frank Kotler
- Re: asm grep
- From: Robert Redelmeier
- Re: asm grep
- From: Frank Kotler
- Re: asm grep
- From: Robert Redelmeier
- Re: asm grep
- From: Charles Crayne
- Re: asm grep
- From: Frank Kotler
- Re: asm grep
- From: Robert Redelmeier
- Re: asm grep
- From: Charles Crayne
- asm grep
- Prev by Date: Re: asm grep
- Next by Date: Re: Printing from MASM (and other droll questions)
- Previous by thread: Re: asm grep
- Next by thread: Re: asm grep
- Index(es):
Relevant Pages
|