12.2. Command-Line Syntax
The syntax for invoking sed has two forms:
sed [options] 'command' file(s) sed [options] -f scriptfile file(s)
The first form allows you to specify an editing command on the command line, surrounded by single quotes. The second form allows you to specify a scriptfile, a file containing sed commands. If no files are specified, sed reads from standard input.
The following options are recognized:
Copyright © 2001 O'Reilly & Associates. All rights reserved.