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 [2010/02/28 03:26] k2pateldaily_regular_expression [2020/08/10 02:35] (current) – external edit 127.0.0.1
Line 10: Line 10:
 <code bash> <code bash>
 cat textfile | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' 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.1267327576.txt.gz · Last modified: 2020/08/10 02:28 (external edit)