[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Tue, 25 Jun 2002 15:41:38 +0000 (UTC)
the think you report is not a bug.
On Tue, 25 Jun 2002 17:01:10 +0200, Holger Lehmann wrote:
> $ grep '^\b' < test.txt > backspace.txt
> But to my surprise it contained the lines without backspaces ....
try "info grep" and you'll find out that \b marks the empty string
at word boundary, so this matches lines like
and doesn't match lines like
To achive what you want, I was able to run this on bash commandline:
grep '^^H' filename
(To enter that ^H, I typed Ctrl-V and then Ctrl-H.)
But things depend on shell and terminal configuration. You may try
your editor or vi to edit a script.
Thank you for writing the bug report anyway,
- grep, Tuan Nguyen, 2002/06/06
- grep, Holger Lehmann, 2002/06/25
- Re: grep,
Stepan Kasal <=
- Re: grep, Alfred M. Szmidt, 2002/06/25