How I can create a function that read line by line a file, and this data can be included in other script and performed activity, then continue with 2nd line.
FILE 1
192.168.23.4 Hola
198.65.45.6 Mundo
FILE 2 Script
get file 1 column 1 = 192.168.23.4
execute something with 192.168.23.4 and execute
echo " ALL file 1"
then ....
get file 2 column 1 = 192.168.23.4
execute something with 192.168.23.4 and execute
echo " ALL file 2"
FILE 1
192.168.23.4 Hola
198.65.45.6 Mundo
FILE 2 Script
get file 1 column 1 = 192.168.23.4
execute something with 192.168.23.4 and execute
echo " ALL file 1"
then ....
get file 2 column 1 = 192.168.23.4
execute something with 192.168.23.4 and execute
echo " ALL file 2"