Need help to change the content for remote located file

Hi All,

I have one file that sits on 4 diffrent servers, those servers are diffrent region based and they are authentication protected and that file has a diff port numbers, so when run the script it must ask my login details,region of server and port no for that file once it took from me it will goes to the file path where it will locate and open it, change the content if i give the line whoes start with defualt or some perticuler word like care then it should search the file,once it found it should change the line if it is not found it must create a new line in the same file.So can you please help me how to write a script.your help is great appreciate.

Thank you in advance.

regards
Arjun

Bumping up posts or double posting is not permitted in these forums.

Please read the rules, which you agreed to when you registered, if you have not already done so.

You may receive an infraction for this. If so, don't worry, just try to follow the rules more carefully. The infraction will expire in the near future

Thank You.

The UNIX and Linux Forums.
Thread closed: Continue here