SUSPECT: Re: files

A.Fadyushin at it-centre.ru A.Fadyushin at it-centre.ru
Tue Nov 28 17:59:15 UTC 2006


This way you will receive the lines which contain only the sentence you
are looking for, i.e. you will not find the lines which contain anything
other along with the sentence.
If you need to find the lines in which the sentence may form a part of
the line (as well as the lines where the sentence occupies the whole
line), you should use
Grep -ir "put sentence here" *

(i.e. without ^ and $)

Alexey Fadyushin
Brainbench MVP for Linux
http://www.brainbench.com

> -----Original Message-----
> From: fedora-list-bounces at redhat.com [mailto:fedora-list-
> bounces at redhat.com] On Behalf Of Jacques B.
> Sent: Tuesday, November 28, 2006 5:13 AM
> To: For users of Fedora
> Subject: SUSPECT: Re: files
> 
> grep -ir "^put sentence here$" *
> 
> Jacques B.
> 
> On 11/27/06, eng.waleed <walleed222 at hotmail.com> wrote:
> > thank you but I want it to compare the whole sentence not only one
word
> in
> > the string
> > ----- Original Message -----
> > From: "Steve Searle" <steve at stevesearle.com>
> > To: "For users of Fedora" <fedora-list at redhat.com>
> > Sent: Tuesday, November 28, 2006 12:54 AM
> > Subject: Re: files
> >
> >
> > > --
> > > fedora-list mailing list
> > > fedora-list at redhat.com
> > > To unsubscribe:
https://www.redhat.com/mailman/listinfo/fedora-list
> >
> > --
> > fedora-list mailing list
> > fedora-list at redhat.com
> > To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
> >
> 
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list




More information about the users mailing list