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

Re: use grep or other command to get exactly pattern



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: pgpP6c2ffD3PC.pgp
Description: PGP signature


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