One liner with grep to extract the IP addresses from a file.
grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}' /path/to/fileThe "-o" option prints only the matched parts.
One liner with perl:
perl -ne 'print if s/.*((\d{1,3}\.){3}\d{1,3}).*/\1/' /path/to/file| grepExtract IP addressSubmitted by sandip on Tue, 05/15/2012 - 15:22One liner with grep to extract the IP addresses from a file. grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}' /path/to/fileThe "-o" option prints only the matched parts. One liner with perl: perl -ne 'print if s/.*((\d{1,3}\.){3}\d{1,3}).*/\1/' /path/to/filehighlight grep search stringSubmitted by sandip on Fri, 12/19/2008 - 15:09Default to highlighting search string when using grep by adding the below alias to ~/.bashrc file: alias grep='grep --color=auto'»  
   | User loginRecent blog posts
 Who's onlineThere are currently 0 users and 9 guests online. |