Removing rules with egrep error