TR.1
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:1k
源码类别:
操作系统开发
开发平台:
C/C++
- .TH TR 1
- .SH NAME
- tr - translate character codes
- .SH SYNOPSIS
- fBtrfR [fB-cdsfR]fR [fIstring1fR] [fIstring2fR]fR
- .br
- .de FL
- .TP
- \fB\$1\fR
- \$2
- ..
- .de EX
- .TP 20
- \fB\$1\fR
- # \$2
- ..
- .SH OPTIONS
- .FL "-c" "Complement the set of characters in fIstring1fR"
- .FL "-d" "Delete all characters specified in fIstring1fR"
- .FL "-s" "Squeeze all runs of characters in fIstring1fR to one character"
- .SH EXAMPLES
- .EX "tr (fm[A-Z](fm (fm[a-z](fm <x >y " "Convert upper case to lower case"
- .EX "tr -d (fm0123456789(fm <f1 >f2 " "Delete all digits from fIf1fR"
- .SH DESCRIPTION
- .PP
- .I Tr
- performs simple character translation.
- When no flag is specified, each character in
- .I string1
- is mapped onto the corresponding character in
- .I string2 .