使用shell脚本获取cpu平均使用率

如下将展现我写的一段代码:正则表达式 #!/bin/bash #This script is to record the cpu load from IBDAP1 to IBDAP4 time=`date +%y%m%d-%H:%M:%S` use=`uptime | sed -r "s/.*load average: ([^ ]*).*/\1/" | gawk '{print $1}'|sed
相关文章
相关标签/搜索