1SED(1)                           User Commands                          SED(1)
2
3
4

NAME

6       sed - stream editor for filtering and transforming text
7

SYNOPSIS

9       sed [OPTION]... {script-only-if-no-other-script} [input-file]...
10

DESCRIPTION

12       Sed  is a stream editor.  A stream editor is used to perform basic text
13       transformations on an input stream (a file or input from  a  pipeline).
14       While  in  some  ways similar to an editor which permits scripted edits
15       (such as ed), sed works by making only one pass over the input(s),  and
16       is consequently more efficient.  But it is sed's ability to filter text
17       in a pipeline which particularly distinguishes it from other  types  of
18       editors.
19
20       -n, --quiet, --silent
21
22              suppress automatic printing of pattern space
23
24       -e script, --expression=script
25
26              add the script to the commands to be executed
27
28       -f script-file, --file=script-file
29
30              add the contents of script-file to the commands to be executed
31
32       --follow-symlinks
33
34              follow symlinks when processing in place
35
36       -i[SUFFIX], --in-place[=SUFFIX]
37
38              edit files in place (makes backup if SUFFIX supplied)
39
40       -l N, --line-length=N
41
42              specify the desired line-wrap length for the `l' command
43
44       --posix
45
46              disable all GNU extensions.
47
48       -E, -r, --regexp-extended
49
50              use  extended regular expressions in the script (for portability
51              use POSIX -E).
52
53       -s, --separate
54
55              consider files as separate rather than as a  single,  continuous
56              long stream.
57
58       --sandbox
59
60              operate in sandbox mode (disable e/r/w commands).
61
62       -u, --unbuffered
63
64              load  minimal amounts of data from the input files and flush the
65              output buffers more often
66
67       -z, --null-data
68
69              separate lines by NUL characters
70
71       --help
72              display this help and exit
73
74       --version
75              output version information and exit
76
77       If no -e, --expression, -f, or --file option is given, then  the  first
78       non-option  argument  is  taken  as  the  sed script to interpret.  All
79       remaining arguments are names of input files; if  no  input  files  are
80       specified, then the standard input is read.
81
82       GNU  sed  home page: <https://www.gnu.org/software/sed/>.  General help
83       using GNU software: <https://www.gnu.org/gethelp/>.  E-mail bug reports
84       to: <bug-sed@gnu.org>.
85

COMMAND SYNOPSIS

8