O'Reilly logo

Mac OS X Tiger in a Nutshell by Jason McIntosh, Chuck Toporek, Chris Stone, Andy Lester

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

sed

Synopsis

sed [options] [files]

Streams editor. Edits one or more files without user interaction. For more information on sed, see sed and awk (O'Reilly). The -e and -f options may be provided multiple times, and they may be used with each other.

Options

-a

Treat all files as text and compare them.

-e instruction

Apply the editing instruction to the files.

-E

Use extended regular expressions.

-f script

Apply the set of instructions from the editing script.

-i extension

Edit files in place, saving the original files with extension appended. If extension is not specified, no backups are made.

-n

Suppress default output.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required