O'Reilly logo

Practical UNIX by Steve Moritsugu - DTR Business Systems

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required