AllInfo
Main: Info Blog Temp Mail


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

3.145.61.142 / 2024-12-22_20-34-03 UTC.