z/OS UNIX System Services User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Using sed to edit a z/OS UNIX file

z/OS UNIX System Services User's Guide
SA23-2279-00

Using the shell: Because sed is a noninteractive editor, you do not use it in an interactive session. Instead, enter the sed command specifying a file that contains editing commands and a data file, and it produces an edited target file with no user interaction. sed is intended for systematic editing, as opposed to the usual editing-on-the-fly performed by interactive users.

sed subcommands are similar to those used with ed, except that sed commands view the input text as a stream rather than as a directly addressable file. Each line of the file that contains editing commands has up to two addresses, a single-letter command, possible command modifiers, and an ending newline character.

For more details on sed, see the sed command description in z/OS UNIX System Services Command Reference.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014