下列脚本的运行结果是():#!/bin/bashitems="1 2 3"for i in ${items}doresult=$idoneecho $result
A. 1
B. 2
C. 3
D. 1 2 3
下列脚本的运行结果是():#!/bin/bashnumber=5while [ ${number} -gt 0 ]doif [ `expr ${number} % 3` -eq 0 ]thenecho $numberfilet number=number-1done
A. 5
B. 3
C. 1
D. 5 4 3 2 1
在bash中,使用循环for((i=0;i<3;i=i+2)),每次循环时,i的值分别是多少()。
A. 0 2
B. 0 1 2
C. 0 1 2 3
D. 1 2 3