Re: findstr doesn't always find




"jkwold" <jkwold@xxxxxxxxxx> wrote in message
news:1172521677.106382.103580@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cygwin's grep gave the proper results once I ensured that all 0x0d ==
CR were stripped from the relevant files -- as a bonus said grep
properly handled search strings longer than 115+ chars. Example:

grep -F -f SR_req\'d *def

Jon

On Feb 26, 11:23 am, "jkwold" <jkw...@xxxxxxxxxx> wrote:

I've got cygwin installed, so I'll see how its grep holds up.

This doesn't answer you question directly but Perl is practically
designed for such problems -- in many cases these changes become
litterally one line programs.

ActivePerl (.com) for Win32 is excellent.

--
Herb Martin, MCSE, MVP
http://www.LearnQuick.Com
(phone on web site)


.



Relevant Pages

  • Re: regular expression question
    ... match lines that do not contain the chars "sync". ... you would negate the test: ... but that won't work as an option for grep. ... the word "sync". ...
    (comp.lang.perl.misc)
  • Re: [SLE] grep
    ... > Wonder if someone could give me the way to grep for an word within all ... > files on my system like the filename would be XXXX.XX ... will do a case insensitive file match for all files with 4 chars ...
    (SuSE)
  • Re: regular expression question
    ... I am trying to use grep -P (for perl regular expressions). ... match lines that do not contain the chars "sync". ... switch, so I can't tell how to use it. ...
    (comp.lang.perl.misc)
  • regular expression question
    ... Sorry, this is probably silly question, but I cannot find right ... I am trying to use grep -P (for perl regular expressions). ... match lines that do not contain the chars "sync". ...
    (comp.lang.perl.misc)

Loading