RE: SUSPECT: Re: files

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

 



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
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux