Files
oldlinux-files/Minix/2.0.0/wwwman/man1/sed.1.html
2024-02-19 00:21:39 -05:00

74 lines
1.5 KiB
HTML

<HTML>
<HEAD>
<TITLE>sed(1)</TITLE>
</HEAD>
<BODY>
<H1>sed(1)</H1>
<HR>
<PRE>
</PRE>
<H2>NAME</H2><PRE>
sed - stream editor
</PRE>
<H2>SYNOPSIS</H2><PRE>
<STRONG>sed</STRONG> [<STRONG>-egn</STRONG>] [<STRONG>-f</STRONG> <EM>script</EM>_<EM>file</EM>] [<EM>edit</EM>_<EM>script</EM>] [<EM>file</EM>]
</PRE>
<H2>OPTIONS</H2><PRE>
<STRONG>-e</STRONG> Accept multiple commands commands on the commands line
<STRONG>-f</STRONG> The following argument contains the edit script
<STRONG>-g</STRONG> Set the global flag on all substitute commands
<STRONG>-n</STRONG> Only output selected lines
</PRE>
<H2>EXAMPLES</H2><PRE>
<STRONG>sed</STRONG> <STRONG>-f</STRONG> <STRONG>script</STRONG> <STRONG>&lt;file</STRONG> # Run a sed script on <EM>file</EM>
<STRONG>sed</STRONG> <STRONG>'/pig/s//hog/g'</STRONG> <STRONG>&lt;file</STRONG>
# Replace <EM>pig</EM> by <EM>hog</EM> in the file
</PRE>
<H2>DESCRIPTION</H2><PRE>
<EM>Sed</EM> is a stream editor. It takes an edit script either from its argument
or a file, and performs an edit session on a named file or <EM>stdin</EM>,
producing output on <EM>stdout</EM>.
</PRE>
<H2>SEE ALSO</H2><PRE>
<STRONG><A HREF="../man1/cgrep.1.html">cgrep(1)</A></STRONG>, <STRONG><A HREF="../man1/fgrep.1.html">fgrep(1)</A></STRONG>, <STRONG><A HREF="../man1/grep.1.html">grep(1)</A></STRONG>, <STRONG><A HREF="../man9/awk.9.html">awk(9)</A></STRONG>.
</PRE>
</BODY>
</HTML>