[bash shell] how to calculate float times float

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/kakakaco/article/details/51236286

It is noted for myself, please do check for yourself.

#!/bin/bash
#
###########################################
alpha=0.0
for((i=0;i<=10;i++))
do
    alpha=`echo "scale=2;$i*0.1"|bc`
    echo "####################"$i
    echo "alpha="$alpha
    echo $alpha > input_b21_temp.txt
    root -l -q b21_mc_alpha.C < input_b21_temp.txt
    mv res_b21.root "./res_b21/"$i".root"
    rm input_b21_temp.txt
done
###########################################
阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页