kg's spot
Let's share...
Friday, December 02, 2011
Grep for IP addresses
#grep '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' logfile
Its easy if we put it as an alias in $HOME/.bashrc file.
alias ipgrep=
"grep '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}'"
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment