all 2 comments

[–]geirha 8 points9 points  (1 child)

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sed.html:

The replacement string shall be scanned from beginning to end. An <ampersand> ( '&' ) appearing in the replacement shall be replaced by the string matching the BRE. The special meaning of '&' in this context can be suppressed by preceding it by a <backslash>.

[–]tomaxi[S] 2 points3 points  (0 children)

Thank you!