When installing a homebrew recipe, you occasionally will get some useful information in the \"Caveats\" section that you may want to tuck under your hat. Is there any way to
Another possibility is to use sed
brew info $(brew list) | sed '/==> Caveats/,/==>/!d;//d'
And to have a formatted output (bash)
for cmd in $(brew list); do
if brew info $cmd | grep -q Caveats; then
echo "$cmd\n";
brew info $cmd | sed '/==> Caveats/,/==>/!d;//d';
printf '%40s\n' | tr ' ' -;
fi;
done;