I have list of ip addresses in one txt file which I have named ip.txt
I want to call those ip in my .sh file, I am not sure how to proceed here..
here I did soemthing
#!/bin/bash -x
var='ip.txt'
for i in $var; do
echo snmpwalk -v 2c -c rcgoips $i 1.3.6.1.3.83.1.4.5.0
done
Please tell me how to do that?