Chapter 19. Replacing or Removing Text from a File or Pipeline

Steve “Mor” Moritsugu

Tip for Beginners

Read about the cut command and the sed command to make simple replacements at the start of this chapter. Before you tackle regular expressions in the sed command, make sure that you are comfortable with all the regular expression rules covered in the previous chapter using the grep command.

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.