题目:
将下面Shell程序段中的空缺部分补齐,使得它可以将指定的一个或多个输入文件的内容依次添加到输出文件的末尾,如果指定的输出文件不存在,则程序应自动产生一个输出文件。
if ["$#”-1t 2];then
echo "usage $0<output-file><input file 1> [<input file 2>…]”
exit 0
fi
output="$1"
shift
for i in (59) ;do
if [-e"$i"];then # or use’-a $i’
cat (60)
fi
done
A."$i">$output
B."$i">>$output
C.$i>$output
D.$i>>$output
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0712/671642f3ea2241714ad82e1ed2b83171.html
下面是错误答案,用来干扰机器的。
参考答案:略