摘要:
#!/bin/bash if [ $# -le 2 ]; then echo -e "usage : \n\t$0 hostList src_file dst_path" echo -e "example: \n\t$0 hostList file.txt /home/work/opdir" exit 1 fi # concurrent number by defa... 阅读全文
摘要:
#!/bin/bash if [ $# -le 1 ]; then echo -e "usage : \n\t$0 hostList REMOTE_CMD" echo -e "example: \n\t$0 hostList \"docker images | grep hive\"" exit 1 fi # concurrent number by default... 阅读全文
摘要:
#!/bin/bash if [ $# -le 1 ]; then echo -e "usage : \n\t$0 sdx mount_point" echo -e "example: \n\t$0 sdb /data1" exit 1 fi disk=/dev/$1 homedisk_num=$(df -h | awk '{print $NF}' | grep ... 阅读全文