10.3. sed and regular expressions

Sed will recognize any of the basic regular expressions and patterns and its rules for matching lines. Remember one of these rules is that if you wish to address a special character you must first escape it with a backslash (\), as this disables the meaning of the special character. Refer back to Chapter 7 on regular expressions if you need to; all expressions we covered in that chapter are quite legal in sed.

Get Linux and Unix Shell Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.