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\}'"
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)