I have a UNIX script that has nawk block inside it (This is just a part of the UNIX and NAWK script. It has many more logic and the below code should definitely be in nawk) This
If this code appears in a shell script in this form, you need to escape the single quote with a backslash so that it doesn't terminate the nawk code. Something like:
COUNTRY_NAME = "COTE D\'IVOIRE"
In the parenthesis case, you need to escape it in the string so that nawk doesn't see it as a regexp grouping operator:
COUNTRY_NAME = "CONGO, Democratic Republic of \\(was Zaire\\)"