I have 1000 clients ( mix of windows / AIX / Linux / Solaris ) .
My Requirement :
I have one config file name called ClientAgent.cfg .It’s available on all OS . But file location is different on all OS ( windows/AIX/Linux/Solaris)
I need find the file “ClientAgent.cfg” first & comment 2 lines inside the file & append 2 new lines for all the servers .
I need action script . Is that possible ?
I can do windows as one action & all Unix as another action also .
Please help me .
One quick example
cat ClientAgent.cfg
rest.protocol=http
rest.port=1082
These 2 lines has to be commented & add below entries as example .
cat ClientAgent.cfg
#rest.protocol=http
#rest.port=1082
rest.protocol=https
rest.port=8082