[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #19977] Adding new function to grep

From: Andreas Schwab
Subject: Re: [bug #19977] Adding new function to grep
Date: Fri, 08 Jun 2007 11:24:01 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.97 (gnu/linux)

Benno Schulenberg <address@hidden> writes:

> Follow-up Comment #1, bug #19977 (project grep):
> 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

Actually you should be able to use equivalence classes:

$ printf "%s\n" a á à â ä | grep '[[=a=]]'

Alas, that does not seem to work yet.


Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]