User Tools

Site Tools


daily_regular_expression

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
daily_regular_expression [2009/10/17 17:48] k2pateldaily_regular_expression [2020/08/10 02:35] (current) – external edit 127.0.0.1
Line 7: Line 7:
 <code bash> <code bash>
 grep '^[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}$' 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.1255801711.txt.gz · Last modified: 2020/08/10 02:28 (external edit)