use grep or other command to get exactly pattern
Steve Searle
steve at stevesearle.com
Fri Jan 18 20:35:29 UTC 2008
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080118/319fd936/attachment-0001.sig>
More information about the fedora-list
mailing list