shell script ping all IP

Simple shell script which will ping all devices which are in text file. Please enter your filename %[file]%

stole
February 17, 2012

for i in $(cat %{file}%); do
ping ${i}
done