由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - shell script如何comment out一整段文字?
相关主题
Help About Font Servershell programming
[转载] 5 OSes: Comments needed for my partition plan有关Unix shell script的问题
大侠!!where can I find some good website for C Shell ?
[转载] (X)EMACS 高手请进!Shell Script
A Question on Shell (ksh) programming问一个Unix Shell Script 的问题
Re: Bash一问:怎么includeCGI之Perl Script一问
which shell is best?help on sed
DD weijing!segmentation fault when using "script"
相关话题的讨论汇总
话题: longtext话题: comment话题: 整段
进入Unix版参与讨论
1 (共1页)
s*******g
发帖数: 6
1
#只能comment out该行。
c*****t
发帖数: 1879
2
一个简单的办法就是用 <<,本来是用来输入一大段文字的。比如
longtext = << LONGTEXT
...
LONGTEXT
不止 LONGTEXT,也可以用任何其它比较明显的 string 作为大段
文字的开头和结尾。

【在 s*******g 的大作中提到】
: #只能comment out该行。
s*******g
发帖数: 6
3
many thanks!

【在 c*****t 的大作中提到】
: 一个简单的办法就是用 <<,本来是用来输入一大段文字的。比如
: longtext = << LONGTEXT
: ...
: LONGTEXT
: 不止 LONGTEXT,也可以用任何其它比较明显的 string 作为大段
: 文字的开头和结尾。

1 (共1页)
进入Unix版参与讨论
相关主题
segmentation fault when using "script"A Question on Shell (ksh) programming
[转载] Perl高手请进Re: Bash一问:怎么include
a Unix shell script questionwhich shell is best?
为什么我就是不会写Shell script?DD weijing!
Help About Font Servershell programming
[转载] 5 OSes: Comments needed for my partition plan有关Unix shell script的问题
大侠!!where can I find some good website for C Shell ?
[转载] (X)EMACS 高手请进!Shell Script
相关话题的讨论汇总
话题: longtext话题: comment话题: 整段