while it may seem simple i can't figure this and and i don't wanna complicate it with python. I'm trying to get 2 variables from a "cat file.txt" in a loop. For just one variable it's simple:
for i in `cat mylist`; do
echo ${i}
done
In this example we have just one word per line.
I need to make 2 separate variables from a line that contains 2 words/numbers per line separated by tab or space.
root@hostname#cat iplist
192.168.0.1 device1
192.168.0.2 device2
192.168.3.2 device3