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

Re: procmail<->egrep mit Leerzeichen



Bertram Scharpf <b.scharpf@tesionmail.de> wrote:
> :0 H
> * ^X-Known-Address: .*\<troll\>
> /dev/null

> erwischt er's nicht, aber er kriegt's mit

> :0 H
> * ^X-Known-Address:.*\<troll\>
> /dev/null

[...]
> Mit `egrep' geht das:

>    $ egrep '^X-Known-Address: .*\<troll\>' ~/Mail/linux/debian
[...]

Fuer egrep bedeutet \< etwas anderes als fuer procmail:

-------------------------------------------
prcml> Match the character before or after a word.
prcml> They are merely a shorthand for `[^a-zA-Z0-9_]', but can
prcml> also match newlines. Since they match actual characters,
prcml> they are only suitable to delimit words, not to delimit
prcml> inter-word space.
-------------------------------------------
egrep> The symbols `\<' and `\>' respectively match the empty string at the
egrep> beginning and end of a word.
-------------------------------------------
Das eine matcht auf "empty string" das andere auf "the character..."
                   cu andreas



Reply to: