摘要:
统计cpu和内存一个月的平均使用率: #!/bin/bash totalcpu_rate=0.0 totalmem_rate=0.0 num_days=$(ls -l /var/log/sa/sa[0-3]* | wc -l) echo $num_days for file in /var/log/ 阅读全文
摘要:
- hosts: myjob gather_facts: false tasks: - name: chage user passwd user: name={{ item.name }} password={{ item.chpass | password_hash('sha512') }} up 阅读全文
摘要:
{ if(NR % 2 == 0) printf("%s\n", $0) else printf("%s, ", $1) } awk -f awk.awk data 阅读全文