Search⌘ K
AI Features

Saving Changes

Explore methods to save modifications made with sed in text files by redirecting output to new files or modifying files in place. Understand when to use each method to safely and efficiently apply text changes.

We'll cover the following...

Redirection

In the previous lesson, we learned how to edit text using sed. Now, we’ll learn how to save those changes. To keep the changes we’ve made with sed, we have two options. Our first option is to redirect the output to a new file using redirection.

Let’s run the terminal below to execute the following command to transform all instances of very to really ...