#! /bin/bash
# author wangzhichao
# date 2021-12-07 15:30
read -p "please input document's name:" x
for i in $(seq 999);
do
read -p "please input ip who need to scp:" ip
if [ "$ip" != end ];then
sshpass -p Mgr8Mgjt8Mgzz@u\$ scp /home/w54784/$x fsp@$ip:/home/fsp/$x
else
echo "the sh closed!"
break
fi
done