cacti中科学计数的读出和转换

[root@yjb ~]# more test.sh 
#!/bin/sh
str1="2.1589872102e+06"
echo $str1| awk '{printf("%d\n",$0+0.5)}'

#cacti流量(M)数字转换成科学计数
M=A*1000*1000/8

猜你喜欢

转载自www.cnblogs.com/dengcongcong/p/11368128.html