≡ Menu

sed Substitution

Q. How do I insert a newline into the RHS of a substitution using sed under Linux / UNIX like operating systems? My line pattern is as follows:

This is a test. This is another input.

I'd like to insert a newline after dot (.).
[click to continue…]

Q. How do I find and replace character codes ( control-codes or nonprintable characters ) such as ctrl+a using sed command under UNIX like operating systems?
[click to continue…]