scripting help
ode:
for service in `crsctl status res -n $host| grep -E "ora\.$database\.(.+)\.svc" |
In the above code I want to further extract the output skipping database name and .svc
For example,below is the sample output for code specifically for only one database :
Code:
crsctl status res -n dev-oragrid-ux01| grep -E "ora.cmdbut.(.+)\.svc"
NAME=ora.cmdbut.boms10.world.svc
NAME=ora.cmdbut.boms_cmdbut_01.world.svc
NAME=ora.cmdbut.cmdbut_01.svc
In the code $host=dev-oragrid-ux01 and $database=cmdbut
Now out of each 3 outputs I want only boms10.world , boms_cmdbut_01.world and cmdbut_01 which means that I want to extract string whihc is after $database and before .svc
0