!/bin/bash #vim ip.txt server ip ip_array=$(cat /tmp/ip.txt) for ip in ${ip_array[*]} do scp -P6122 /tmp/test.sh [email protected]$ip:/tmp/ done
时间: 2024-10-12 21:36:03
!/bin/bash #vim ip.txt server ip ip_array=$(cat /tmp/ip.txt) for ip in ${ip_array[*]} do scp -P6122 /tmp/test.sh [email protected]$ip:/tmp/ done