use grep or other command to get exactly pattern

Robert P. J. Day rpjday at crashcourse.ca
Fri Jan 18 20:35:34 UTC 2008


On Fri, 18 Jan 2008, John  BORIS wrote:

> You can do this
> grep 10.0.0.7. filename
>
> The last period may work as a space. Or do this
> grep "10.0.0.7 " filename
>
> That might work as well

i would use the "-w" option to force the string to be a separate word.

rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

Home page:                                         http://crashcourse.ca
Fedora Cookbook:    http://crashcourse.ca/wiki/index.php/Fedora_Cookbook
========================================================================




More information about the fedora-list mailing list