EDIT: except for the missing trailing "/"
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
It' all magic! [1]
[0]https://groups.google.com/forum/m/?hl=en#!msg/comp.lang.perl... [1]https://groups.google.com/forum/m/?hl=en#!msg/comp.lang.perl...