Hacker News new | ask | show | jobs
by GlitchMr 3025 days ago
It can also be Perl, as Perl supports `s///` syntax.
1 comments

Doesn't need to be forward slashes (in either Perl or sed).

In fact that last example I might write as either of the two following ways:

    s,$,/,
    s{$}{/}    # this is supported in Perl but not sed
to avoid having to escape the replacing character.