5.6. sed command

Editing files will be the subject of the next chapter. However, for some editing taks we can use the sed stream editor. Two important differences to a standard editor are:

  • sed doesn’t change the file it is editing. It takes a stream and transforms it, sending the results to stdout.

  • sed commands are global on the stream and are working on the whole stream. To limit the extent of a change we use addresses.