Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

READ line by line a file 1

Status
Not open for further replies.

aoroca

IS-IT--Management
Oct 3, 2003
39
CO
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"
 
In my previous post I said that:
Another syntax problem I can see is the escaped quote at the end of the 2 strings you print to sms_operator.
 
Sorry, but i can not find the typo, when? how?
 
Code:
print "submit\n$MOBILE\n\n5710000001\n\n\n\n\n1
\n\n\n\n\n\n\n$MSG\ny\nexit\n\"|
                             ^

Hope This Help
PH.
 
nexit\n\"|

You typed \ before the " you know???

tikual
 
PHV, WORKS GOOD, Thanks a lot and You are so patient. Thanks a lot and see you later.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top