I also used the following AWK command to find if anything is not closed correctly..
for brackets, curly braces, parenthesis all returned a value of ‘O’ meaning nothing is out of place. if i did a typo in the commands let me know please.
**** LOOK FOR MISSING Brackets “[ ]” OR Curly Braces “{ }” and PARENTHESIS “( )” ***
Curly Braces
awk ‘BEGIN{o=0} {for(i=1;i<=length($0);i++){c=substr($0,i,1); if(c==”{“)o++; if(c==”}”)o–}} END{print “unmatched opens:”, o}’ \
/cloverleaf/cis20.1/integrator/vend_trans3/NetConfig
Brackets
awk ‘BEGIN{o=0} {for(i=1;i<=length($0);i++){c=substr($0,i,1); if(c==”[“)o++; if(c==”]”)o–}} END{print “unmatched opens:”, o}’ \
/cloverleaf/cis20.1/integrator/vend_trans3/NetConfig
Parenthesis
awk ‘BEGIN{o=0} {for(i=1;i<=length($0);i++){c=substr($0,i,1); if(c==”(“)o++; if(c==”)”)o–}} END{print “unmatched opens:”, o}’ \
/cloverleaf/cis20.1/integrator/vend_trans3/NetConfig