[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compile.el::grep-program - should it use egrep instead of grep?
From: |
Andreas Schwab |
Subject: |
Re: compile.el::grep-program - should it use egrep instead of grep? |
Date: |
Mon, 12 Sep 2005 18:30:56 +0200 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) |
Jari Aalto <address@hidden> writes:
> Andreas Schwab <address@hidden> writes:
>
> | Jari Aalto <address@hidden> writes:
> |
> | > Could you elaborate a little. The syntax of grep is not sufficient to
> | > make daily searches with M-x find-dired or M-x grep-find that happen
> | > frequently during searching system log files or looking into program
> | > and text document files.
> |
> | In GNU grep there is no expressive difference between BREs and EREs, only
> | the syntax differs.
>
> $ grep --version
> grep (GNU grep) 2.5.1
>
> $ echo -e "this\nthat" | grep '(this|that)'
> <nothing>
Which part of "only the syntax differs" did you not understand?
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."