10.1. How sed reads data

Sed will read a line of text from a file or from other forms of standard input, and copy it into an editing buffer area. It will then read the first command from either the command line or a script, and using these commands, will find the pattern or address line and edit it. It will then repeat this procedure until there are no more commands left.

Get Linux and Unix Shell Programming 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.