Perl in-place substitution as an alternative to sed


/ Published in: Pseudocode
Save to your folder(s)



Copy this code and paste it in your HTML
  1. perl -i -pe "s|handles 'quotes' \"nicely\"|and $shell_variables|" example.txt

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.