unix 2016-04-10 08-24-54
grep examples
Собирает IP...
grep -E -o "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)" <ast.f |awk {'print "-A INPUT -s " $1 "/32 -j DROP"'} |sort -u >>$0.tx