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 revision Previous revision
daily_regular_expression [2010/02/27 22:26]
k2patel
daily_regular_expression [2011/07/12 14:28] (current)
k2patel
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.txt ยท Last modified: 2011/07/12 14:28 by k2patel