Use um loop while
com read
para obter cada endereço IP e use ping
:
#!/bin/bash
while IFS= read -r ip; do
if ping -q -c2 "$ip" &>/dev/null; then
echo "$ip is Pingable"
else
echo "$i Not Pingable"
fi
done <"$HOME"/iplist.txt