reading argument with -n option in the script
Assuming this script name would be status_res.sh and the user needs to use arguments nodename which would give results specific to one server
Now how should I read this argument internally whichgets prefixed with -n option in the script since I would be using below command in script
Code:
status_res.sh -n node1
Now how should I read this argument internally whichgets prefixed with -n option in the script since I would be using below command in script
Code:
crsctl status res -n nodenamw| grep -E "ora\.$DATABASE\.(.+)\.svc" | awk -F"." '{print $(NF-1)}
Best regards,
Vishal
0