#!/bin/bash # author: suxinghe # date: 2015.6.9 # version: 0.0.1 # description: create partions for disk read -p "please input a disk name:" disk while : do if [[ $disk =~ /dev/* ]] then if [ -b $disk ] then read -p "your choice are $disk,
#!/bin/bash #vim ip.txt server ip ip_array=$(cat /tmp/ip.txt) user="root" passwd="password" remote_cmd="/tmp/test.sh" port=6122 for ip in ${ip_array[*]} do ssh -t -p $port [email protected]$ip $remote_cmd done