Find all files ending with ".sh" that are not empty, then search for strings that contain at least three consecutive capital letters or start with at least three consecutive capital letters, then print the second and third fields of the output separated by a colon, and finally convert the output to uppercase.
find ~ -name "*.sh" -not -empty | xargs grep -E "(([A-Z]{3,}.*\w+)|(\w+.*[A-Z]{3,}))" | cut -d ":" -f2,3 | awk '{ print toupper($0) }'