Re: files
- From: Jeff Vian <jvian10@xxxxxxxxxxx>
- Date: Wed, 29 Nov 2006 12:44:22 -0600
On Thu, 2006-11-30 at 02:22 +1030, Tim wrote:
Jacques B.:Using a URI is not the same as having the bash shell interpret the
grep -ir "^put sentence here$" *
Ingemar Nilsson:
Note that this will only match if the sentence is on a line by itself,
since ^ and $ means beginning of line and end of line respectively.
Are you sure about that? I thought they just meant that the string
begins with, and ends with, the enclosed characters. I didn't think
they actually refered to end-of-line indicators, the same markers are
used in wildcarding where there isn't a notion of "lines" (e.g. URIs).
command line.
In bash (and regexes) in the format used above the ^ literally means
"line begins with" and the $ means "line ends with"
To have it match anywhere in the line you must remove those special
characters.
Try it yourself if you need proof.
--
(Currently testing FC5, but still running FC4, if that's important.)
Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
- References:
- Prev by Date: Re: microphone only works for first skype call under fc6
- Next by Date: Re: Yum: Segmentation fault [solved]...
- Previous by thread: Re: files
- Next by thread: Re: files
- Index(es):