This is a sed version of case-police.
To check if case is correct:
echo 'I love emacs and GITHUB!' | ./casecheck
I love Emacs and GitHub!
To fix the case:
echo 'I love emacs and GITHUB!' >out
sed -i -f casecheck out
cat out
I love Emacs and GitHub!