1 #!/bin/bash 2 a=38 3 b=99 4 5 percent_1=$(printf “%d%%” $((a*100/b))) 6 # 或者 7 percent_2=`awk ‘BEG … Continue reading shell求两个数相除后的百分比
1 #!/bin/bash 2 a=38 3 b=99 4 5 percent_1=$(printf “%d%%” $((a*100/b))) 6 # 或者 7 percent_2=`awk ‘BEG … Continue reading shell求两个数相除后的百分比