#!/bin/bash if [ -z "$BASH_VERSION" ]; then exec bash "$0" "$@"; exit; fi if [ $1 == '' ]; then exit else; passwd=$1 while read ip do echo ${ip} #./key.sh ${passwd} ${ip} done < ip_list