I have a file called node1.scp that has the contents as shown below.
What I need to pull out from the lines is:
i.e.
[67] instances=2
[69] instances=1
[70] instances=1
in two columns as shown above.
thx so much for your help.
.... bla ....
[67]
description=CPM Async Script Class 001
instances=2
restart=Y
[67.aix-rs6000]
path=cer_exe/srv_drvr
parameters=cer_exe/cpm_srvscripta
[67.prop.aix-rs6000]
binding=CpmScriptAsync001
DependencyGroup=1
SSC Binding=async001
startup script=procare
User Name=d_prod
[69]
description=CPM Generic Cache Manager
instances=1
restart=Y
[69.aix-rs6000]
path=cer_exe/cpm_srvgenericcache
parameters=
[69.prop.aix-rs6000]
DependencyGroup=1
User Name=d_prod
[70]
description=CPM Audit Server
instances=1
restart=Y
...... bla ....
What I need to pull out from the lines is:
i.e.
[67] instances=2
[69] instances=1
[70] instances=1
in two columns as shown above.
thx so much for your help.
.... bla ....
[67]
description=CPM Async Script Class 001
instances=2
restart=Y
[67.aix-rs6000]
path=cer_exe/srv_drvr
parameters=cer_exe/cpm_srvscripta
[67.prop.aix-rs6000]
binding=CpmScriptAsync001
DependencyGroup=1
SSC Binding=async001
startup script=procare
User Name=d_prod
[69]
description=CPM Generic Cache Manager
instances=1
restart=Y
[69.aix-rs6000]
path=cer_exe/cpm_srvgenericcache
parameters=
[69.prop.aix-rs6000]
DependencyGroup=1
User Name=d_prod
[70]
description=CPM Audit Server
instances=1
restart=Y
...... bla ....