The sed command is a bit like chess: it takes an hour to learn the basics and a lifetime to master them (or, at least a lot of practice). We'll show you a selection of opening gambits in each of the main categories of sedfunctionality. sed is a stream editorthat works on piped input or files of text. It doesn't have an interactiv…See more on howtogeek
Unix & Linux Stack Exchangehttps://unix.stackexchange › questionsWhat characters do I need to escape when using sed in a sh …
In a nutshell, for sed 's/…/…/': Write the regex between single quotes. Use ''' to end up with a single quote in the regex. Put a backslash before $.*/[]^ and only those characters (but not …