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. Ifextension
is not specified, no backups are made.- -n
Suppress default output.
Get Mac OS X Tiger in a Nutshell 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.