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
Next revision
Previous revision
daily_regular_expression [2009/10/17 13:48]
k2patel
daily_regular_expression [2011/07/12 14:28]
k2patel
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.txt ยท Last modified: 2011/07/12 14:28 by k2patel