buggrep - Bugs: bug #19977, Adding new function to grep


You are not allowed to post comments on this tracker with your current authentication level.

bug #19977: Adding new function to grep

Submitted by:  Tariq Al-Omaireeni <tariqao>
Submitted on:  Sun 27 May 2007 10:43:52 AM UTC  
Category: NoneSeverity: 1 - Wish
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Wed 15 Aug 2012 09:28:51 AM UTC, comment #2:

Indeed, this is a very good request. For example I have a text file that contains the following lines:


when I search "english" with grep, I need it to show me all the lines.

the grep that I use (from gnuwin32) doesn't have options like "--ignore-marks" or " --ignore-diacritics"

grep english file.txt

Pablo Gonzalez <gonzo>
Thu 07 Jun 2007 08:40:32 PM UTC, comment #1:

That is a good request. Grep not matching accented characters is not only a problem in Arabic with Tashkeel signs, but also in many European languages with diacritical signs. One would like to have an option to ignore any of those signs so that the following command outputs five lines instead of just one:

$ echo -e " a\n á\n à\n â\n ä" | grep --ignore-diacritics a

Of course "-it" is not possible as an option, but for example "-k" and "--ignore-marks" would be.

You plan to develop and program this option yourself? Then you will be mostly on your own, as the maintainers of grep are... busy elsewhere. But when you have a patch, even if it's just half-working, please attach it here; others will be interested.


Benno Schulenberg <bens>
Sun 27 May 2007 10:43:52 AM UTC, original submission:

Hi there,

I do not know whether it is the right place to put this post or not. Anyway, I want to propose a new function for grep. grep already Supports Arabic language. However, Arabic language has a special characteristic called "Tashkeel Signs". Tashkeel Signs are additional marks above and below letters that help the reader to pronounce the word accurately. When using grep with Arabic text, if the desired word has "Tashkeel Signes" it will not appear in the results because the two words seem deferent. So I want to add an option like the option -i that ignores the case. But in my case, I will ignore the "Tashkeel Signs" lets name the option (-it). I think it is applicable and easy to develop. I really want to here from you about it and I need your guidance thru the development stages.
I will appreciate your cooperation.


Tariq Al-Omaireeni <tariqao>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by gonzo (Posted a comment)
  • -unavailable- added by bonzini (Updated the item)
  • -unavailable- added by bens (Posted a comment)
  • -unavailable- added by tariqao (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 04 Dec 2009 07:24:01 PM UTCbonziniSeverity3 - Normal=>1 - Wish
    Sun 27 May 2007 10:43:52 AM UTCtariqaoCarbon-Copy-=>Added tariqao

    Back to the top

    Powered by Savane 3.1-cleanup1