exec { "/bin/sed -i -e '\\%${line}%d' '${file}'" : ... }
That would still suffer from the same problem as perl - the default shell. See Re^2: One liner: remove ssh keys with quotemeta.
Alexander
In reply to Re^2: One liner: remove ssh keys with quotemeta
by afoken
in thread One liner: remove ssh keys with quotemeta
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |