Replacing or Removing Strings (Using Regular Expression)
The preceding chapter showed how to use regular expression wildcards to find lines containing a pattern within a file or pipeline. That chapter also showed that regular expression wildcards can look similar to filename generation wildcards, but these are two different sets of wildcards used for totally different purposes even though they use some of the same wildcard characters. This section teaches you how to replace a substring within a line and how to use regular expression patterns to define the string to be replaced.
SEE ALSO
For more information on regular expression wildcards, see ... |
Get Practical UNIX 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.