Re: asm grep



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



.



Relevant Pages

  • Re: RosAsm - right click OT#4
    ... your serious posts reveal a valuable knowledge base. ... [I'll keep in mind Miss Ascii] ... Even most males like to watch the frequent 'cat-fight's, ...
    (alt.lang.asm)
  • Re: If Sarah Palin is the answer
    ... ASCII wrote: ... properly and use compound words. ... No doubt in my mind that this ... combined with race gave him an edge. ...
    (misc.survivalism)
  • Re: Oooh, the dark side
    ... my engine from ascii to this. ... Bare in mind that these are about 2 months old and I have fixed many ... And yes I will be working on ascii version aswell. ...
    (rec.games.roguelike.development)
  • Re: Oooh, the dark side
    ... my engine from ascii to this. ... Bare in mind that these are about 2 months old and I have fixed many ... And yes I will be working on ascii version aswell. ...
    (rec.games.roguelike.development)
  • Re: Protecting my deck this winter
    ... This really helps ease my mind. ... plan on completely stripping and restaining it in the spring. ...
    (alt.home.repair)