To test exit code, consider portable alternatives:
"grep ... > /dev/null" instead of "grep -q ..."
"cmp ..." instead of "diff -q ..."
Tested with AIX 5.3, 7.1 and Solaris. 2.7. 2.10, 2.11 standard commands.
To test exit code, consider portable alternatives:
"grep ... > /dev/null" instead of "grep -q ..."
"cmp ..." instead of "diff -q ..."
Tested with AIX 5.3, 7.1 and Solaris. 2.7. 2.10, 2.11 standard commands.