SED.1
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:1k
源码类别:
操作系统开发
开发平台:
C/C++
- .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).