I use what is below to print out prerequisites that aren’t met when performing a silent install. It is a lot easier to read, and prints only those components that have a failed check.
#!/bin/awk -f
{
if ($0 == "INFO: *********************************************") {
getline
COMPONENT=$0
getline
getline
if ($0 ~ "FAILED") {
printf("%s\n",COMPONENT)
}
}
}