|

楼主 |
发表于 2003-8-30 15:57:12
|
显示全部楼层
最初由 javalee 发表
在CSH下的变量赋值要这样:
- [javalee@Linux ~/myshell][color=blue]$ set var=`perl -e 'print a..z'`[/color]
- #CSH/TCSH的赋值方法是这样的!$(..)的只适合BASH/KSH/BSH
- [javalee@Linux ~/myshell]$ echo $var
- abcdefghijklmnopqrstuvwxyz
复制代码
TCSH对变量的赋值请参考: http://www.linuxsir.cn/bbs/showthread.php?threadid=35732
I want to read the value from file and assign it to a varible in my shell script,how to convert the string in file to the number varible in my script? |
|