SED one-liner to comment out all lines containing a string

sed -i ‘s/.*ET P2P.*/#&/g’ /etc/suricata/rules/emerging-all.rules

This entry was posted in Linux Shell Scripts. Bookmark the permalink.

Leave a comment