for 有没有这样的用法 example: for i in `cat aa`;for j in `cat bb`;do .........;done 这2个for 该如何写。
by 709101040516 - Shell - 2010-04-08 09:59:12 阅读(8397) 回复(10)
orauser@r86ocs1:/oravl01/oracle/Users>ksh orauser@:/oravl01/oracle/Users>whiel true do ksh: whiel: not found orauser@:/oravl01/oracle/Users>while true do > sleep 30 > done ksh: syntax error: `done' unexpected orauser@:/oravl01/oracle/Users>uname -a HP-UX r86ocs1 B.11.31 U ia64 0094021947 unlimited-user license
在本机时可以执行for u in /home/* ; do echo $u; done 我将根分区挂到/mnt 时执行 chroot /mnt for u in /home/* ; do echo $u; done 报错 -bash: syntax error near unexpected token `do' 请教该怎么写?
连内置方法都那么多同义词,如判断hash key的: key?, has_key?, member?, include? 比Perl更强悍~~ :luya: :luya:
Dear xxxx san, Hello. I investigated about the cause of the CPU usage, and I suspect the process started between 8:20 and 8:40 on May 30 is the cause of this problem. Could you ask the person of IT sector in charge of each application( GALC, GPCS, GSITE) about any process start about 8:00 on Sunday? Best Reagards, ************************************* XXXXX System Sector No.1 Automotive Solution...
for ............ do command ......>> a.txt done 为什么这样a.txt 里没有东西? 单独执行 command..........>>a.txt 是可以的 还有 就是 去掉 >>a.txt 脚本也是正确运行的! 为什么加了这个连脚本运行都有问题?
逻辑没错误,主要是报错说done不对?可以省略看do 与done之间的代码。请不要吝啬您的建议,您的建议也许能给我些提醒。 while read bt3 sta3 btype #bt3=batch_no ,sta3=status,btype=batch_type do count=0 case $sta3 in # 未写) cd /richter/download/error; mv *$bt2*.dat ../data ; mv *$bt2*.ok ../data;cd /richt er/download/data;compress *$bt2*.dat;cd ../bin;vms_download.sh;; "E"|"...
THFS文件系统模块编码完成,只有2K行,恩......更多功能以后再说吧...... B Tree Allocate Group Journal log Block Allocate Strategy Dir Entry Manage Strategy 先把论文写了。 然后就去baidu实习咯~ 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/22342/showart_280784.html