求助 cshell怎么实现while read循环?
#!/bin/shwhile read HOST
do
rsh $HOST ps -ef|grep icms
done < nsname
这里的while read怎么用csh实现:shock::shock:? 3x~!
[ 本帖最后由 mavina 于 2005-11-24 15:53 编辑 ] try:
foreach line (`cat urfile`);do
echo $line
end
BTW:csh没有while read结构 原帖由 寂寞烈火 于 2005-11-24 15:55 发表
try:
foreach line (`cat urfile`);do
echo $line
end
BTW:csh没有while read结构
3x~!
呵呵,这个脚本如果有空格就不行了
页:
[1]