User Tools

Site Tools


daily_regular_expression

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
daily_regular_expression [2009/10/17 17:47] – created k2pateldaily_regular_expression [2020/08/10 02:35] (current) – external edit 127.0.0.1
Line 4: Line 4:
 <code bash> <code bash>
 egrep '([[:digit:]]{1,3}\.){3}[[:digit:]]{1,3}' egrep '([[:digit:]]{1,3}\.){3}[[:digit:]]{1,3}'
 +</code>
 +<code bash>
 +grep '^[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}$'
 +</code>
 +<code bash>
 +cat textfile | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}'
 +</code>
 +<code bash>
 +/sbin/ifconfig | grep "inet addr" | awk -F : '{print $2}' | awk '{print $1}' | grep -v -e '^192.\|^127.\|^10.'
 </code> </code>
daily_regular_expression.1255801659.txt.gz · Last modified: 2020/08/10 02:28 (external edit)