grep Blocking /var/log/snortsam.log | sed 's/.*Blocking host //g' | sed 's/ completely.*//g' | sort | DUPE > /txt.txt cat /txt.txt | sed 's/^/nmap -T 5 -oG log.xml --append-output /g' | sed 's/$/ -p 80,139/g' > go2.sh bash go2.sh