≡ Menu

sed Substitution

sed Insert a Newline Into the RHS of a 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…]

sed Find and Replace ASCII Control Codes / Nonprintable Characters

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…]