All, I need to write an unix shell script which inserts some records into a file located in remote servers.
- Get the input from the user and insert according the first row. It should be in ascending order.
123451,XA,ABA
123452,XB,ABB
123453,XC,ABC
123455,XE,ABE
123456,XF,ABF
123458,XG,ABG
Now I would like to insert these records "123454,XY,ABD", "123457,XZ,ABZ". I need output like below (ie, file needs to get updated like this)
123451,XA,ABA
123452,XB,ABB
123453,XC,ABC
123454,XY,ABD -- First Record
123455,XE,ABE
123456,XF,ABF
123457,XZ,ABZ -- Second Record
123458,XG,ABG
I need to update the same in different servers at the same time (ie. when I run this script). I'm new to unix shell scripting and now I'm learning.
Can someone help me out with this...many thanks in advance~!