⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 s2p.man

📁 早期freebsd实现
💻 MAN
字号:
.rn '' }`''' $RCSfile: s2p.man,v $$Revision: 4.0.1.1 $$Date: 91/06/07 12:19:57 $''' ''' $Log:	s2p.man,v $''' Revision 4.0.1.1  91/06/07  12:19:57  lwall''' patch4: s2p now handles embedded newlines better and optimizes common idioms''' ''' Revision 4.0  91/03/20  01:58:07  lwall''' 4.0 baseline.''' ''' Revision 3.0  89/10/18  15:35:09  lwall''' 3.0 baseline''' ''' Revision 2.0  88/06/05  00:15:59  root''' Baseline version 2.0.''' ''' .de Sh.br.ne 5.PP\fB\\$1\fR.PP...de Sp.if t .sp .5v.if n .sp...de Ip.br.ie \\n.$>=3 .ne \\$3.el .ne 3.IP "\\$1" \\$2..''''''     Set up \*(-- to give an unbreakable dash;'''     string Tr holds user defined translation string.'''     Bell System Logo is used as a dummy character.'''.tr \(*W-|\(bv\*(Tr.ie n \{\.ds -- \(*W-.if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch.if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch.ds L" "".ds R" "".ds L' '.ds R' ''br\}.el\{\.ds -- \(em\|.tr \*(Tr.ds L" ``.ds R" ''.ds L' `.ds R' ''br\}.TH S2P 1 NEW.SH NAMEs2p - Sed to Perl translator.SH SYNOPSIS.B s2p [options] filename.SH DESCRIPTION.I S2ptakes a sed script specified on the command line (or from standard input)and produces a comparable.I perlscript on the standard output..Sh "Options"Options include:.TP 5.B \-D<number>sets debugging flags..TP 5.B \-nspecifies that this sed script was always invoked with a sed -n.Otherwise a switch parser is prepended to the front of the script..TP 5.B \-pspecifies that this sed script was never invoked with a sed -n.Otherwise a switch parser is prepended to the front of the script..Sh "Considerations"The perl script produced looks very sed-ish, and there may very well bebetter ways to express what you want to do in perl.For instance, s2p does not make any use of the split operator, but you mightwant to..PPThe perl script you end up with may be either faster or slower than the originalsed script.If you're only interested in speed you'll just have to try it both ways.Of course, if you want to do something sed doesn't do, you have no choice.It's often possible to speed up the perl script by various methods, suchas deleting all references to $\e and chop..SH ENVIRONMENTS2p uses no environment variables..SH AUTHORLarry Wall <lwall@jpl-devvax.Jpl.Nasa.Gov>.SH FILES.SH SEE ALSOperl	The perl compiler/interpreter.bra2p	awk to perl translator.SH DIAGNOSTICS.SH BUGS.rn }` ''

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -