Re: use grep or other command to get exactly pattern

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

 



Around 08:20pm on Friday, January 18, 2008 (UK time), ann kok scrawled:

> how can use grep or use other command to get exactly
> pattern eg: 10.0.0.7 only?
> 
> eg: grep 10.0.0.7 file. I want to get 10.0.0.7 only
> not  

grep 10.0.0.7$ file

Assuming that there is nothing else on the line after the IP address.

Steve

-- 

A:  Because it messes up the order in which people normally read text.
Q:  Why is top-posting a bad thing?

 20:34:32 up 111 days,  7:31,  1 user,  load average: 0.09, 0.08, 0.01

Attachment: pgpSqvEXWOXEp.pgp
Description: PGP signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux