如何写一个linux脚本,给程序A输入字符串

如题所述

#!/bin/bashall=$*if [ $# -ne 10 ];then echo error|tee -a /tmp/err exit 1fisum=1for i in $alldo if [ $i -le 0 ];then echo error|tee -a /tmp/err exit 1 else sum=`expr $sum \* $i` fidoneecho $sum
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答
大家正在搜