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@xxxxxxxxxx [mailto:fedora-list- > bounces@xxxxxxxxxx] 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@xxxxxxxxxxx> 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@xxxxxxxxxxxxxxx> > > To: "For users of Fedora" <fedora-list@xxxxxxxxxx> > > Sent: Tuesday, November 28, 2006 12:54 AM > > Subject: Re: files > > > > > > > -- > > > fedora-list mailing list > > > fedora-list@xxxxxxxxxx > > > To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list > > > > -- > > fedora-list mailing list > > fedora-list@xxxxxxxxxx > > To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list > > > > -- > fedora-list mailing list > fedora-list@xxxxxxxxxx > To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list -- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list