If you insist on this approach, try inserting quotemeta just before sprintf.
In reply to Re^2: One liner: remove ssh keys with quotemeta
by jcb
in thread One liner: remove ssh keys with quotemeta
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |