SED.1
上传用户:jnzhq888
上传日期:2007-01-18
资源大小:51694k
文件大小:1k
- .TH SED 1
- .SH NAME
- sed - stream editor
- .SH SYNOPSIS
- fBsedfR [fB-egnfR]fR [fB-f fIscript_filefR]fR [fIedit_scriptfR] [fIfilefR]fR
- .br
- .de FL
- .TP
- \fB\$1\fR
- \$2
- ..
- .de EX
- .TP 20
- \fB\$1\fR
- # \$2
- ..
- .SH OPTIONS
- .FL "-e" "Accept multiple commands commands on the commands line"
- .FL "-f" "The following argument contains the edit script"
- .FL "-g" "Set the global flag on all substitute commands"
- .FL "-n" "Only output selected lines"
- .SH EXAMPLES
- .EX "sed -f script <file" "Run a sed script on fIfilefR"
- .EX "sed (fm/pig/s//hog/g(fm <file" "Replace fIpigfR by fIhogfR in the file"
- .SH DESCRIPTION
- .PP
- fISedfR 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 fIstdinfR, producing output
- on fIstdoutfR.
- .SH "SEE ALSO"
- .BR cgrep (1),
- .BR fgrep (1),
- .BR grep (1),
- .BR awk (9).