|
create two blank files data.txt and myipaddress.txt so you wont get "files does not exist error " once you have created the two blank files run the script and you should see your ipaddress in the file myipaddress.txt. cat myipaddress.txt simple and effective |
|||
|
|
I like using awk for this kind of stuff: |
|||
|
|
You could also do it this way, |
|||
|
|
0
Answers
|
|
0
Answers
|
|
2
Answers
|
|
0
Answers
|
|
1
Answer
|
The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.
Join / Linux Training / Board