If you want a sed with perl-style regular expressions, it seems that there are two ways to do it:
ssed -R
perl -pe
Is there any reason to prefer one tool over the other for this purpose? They both support the -i flag. I assume they use the same perl regular expression library, and would therefore probably have similar performance and identical features and bugs. It seems pretty uncommon for perl not to be installed on a modern unix machine.
ssed
threw me off-guard, first time I'm hearing of it. It's not installed by default in common Linux distro, whereas perl often is. Andssed
uses PCRE, not Perl's regex engine, so they may have some differences. – muru Nov 10 '15 at 20:12