[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep: -i option not working i cronjobs
From: |
J. W.Andersen, Falster System Teknik |
Subject: |
Re: grep: -i option not working i cronjobs |
Date: |
Thu, 11 Nov 2004 18:18:07 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20040910 |
Julian:
FYI, I found yet another bug in grep/fgrep/egrep:
When -i and -o options are used at the same time, the greps always outputs
the searched text i LOWERCASE ! This was not exactly whar I was looking
for, the whole idea was to get the filename as it was passed, so that I
could
rename it to what I wanted.
So untill further I gave up the various greps and wrote a rather primitive
mini-grep just for my purpose - compared to grep it processes only one
file, and the only option known is -i. Not glamorous, and not very
sophisticated, but it does work for my purpose !
Cheers, Joe.-
++++++++++++++++++++++++++++++++++
Julian Foad wrote:
J. W.Andersen, Falster System Teknik wrote:
I have retrieved SuSE's source pack for the actual grep. As my C
skille are pretty rusty (have not used them much
for the past 10 years ), I am somewhat uncertain as to where to begin
and where to end. Could you maybe
give a hint as to which of the source modules are of primary
interrest for this issue ?
Look for "only_matching" and "match_icase" in src/grep.c.
If you are willing to help fix this, please go to the GNU Savannah
project home page for Grep, at https://savannah.gnu.org/projects/grep/
and check out the latest source code from CVS, and in the bug and
patch databases there you will find things like a previous attempt to
fix it, and some tests for this behaviour.
We will be glad to discuss your ideas and progress on this mailing list.
- Julian
- Re: grep: -i option not working i cronjobs, J. W.Andersen, Falster System Teknik, 2004/11/10
- Re: grep: -i option not working i cronjobs, Julian Foad, 2004/11/10
- Message not available
- Re: grep: -i option not working i cronjobs, Julian Foad, 2004/11/10
- Re: grep: -i option not working i cronjobs, J. W.Andersen, Falster System Teknik, 2004/11/10
- Re: grep: -i option not working i cronjobs,
J. W.Andersen, Falster System Teknik <=
- Re: grep: -i option not working i cronjobs, Tony Abou-Assaleh, 2004/11/11
- Re: grep: -i option not working i cronjobs, Tim Waugh, 2004/11/12
- Re: grep: -i option not working i cronjobs, Stepan Kasal, 2004/11/12
- [bug-grep] Re: grep: -i option not working i cronjobs, Julian Foad, 2004/11/12