bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Possible bug in grep ?


From: Paul Jarc
Subject: Re: Possible bug in grep ?
Date: Tue, 29 Apr 2003 11:38:23 -0400
User-agent: Gnus/5.09002 (Oort Gnus v0.20) Emacs/21.3 (gnu/linux)

raghubs <address@hidden> wrote:
>                  cat a  |  grep "\n"
>
>                  OS just throws dollar prompt.

The regexp "\n" matches the character n.  If you want to match the end
of the line, use "$".  (Also, beware that the shell does $variable
expansion in double-quoted strings; use 'single quotes' to prevent
that.)


paul




reply via email to

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