shell for循环

AIX,HP-UX下的SH
for i in `perl -e 'print "$_ " foreach(1..100);'`;do echo "hello";done

 

Linux下的SH

for((i=0;i<100;i++)); do echo "hello"; done

posted @ 2012-12-19 10:03  Further  阅读(303)  评论(0编辑  收藏  举报