hi all
I have to write a script, which will copy data (IP addresses) from IP_ADDRS file to different files (one IP address will be copped to one file).
IP_ADDRS file
IP_SYS1=193.168.1.1
IP_SYS2=193.168.1.2
IP_SYS3=193.168.1.3
IP_SYS4=193.168.1.4
IP_SYS5=193.168.1.5
IP_SYS6=193.168.1.6
IP_SYS7=193.168.1.7
IP_SYS8=193.168.1.8
And device details.
--------------------------------
Each address should be copped one file like
IP_SYS1 to sys1.txt
IP_SYS2 to sys2.txt
The sys1.txt should look like
IP_ADDR= 193.168.1.1
The sys2.txt should look like
IP_ADDR= 193.168.1.2
I wrote two scripts do this. But I need to do this with a single script.
please suggest me one procedure to do this using a single script.
Thank you.