for cask in $(brew cask outdated --greedy --verbose | awk '$2 != "(latest)" {print $1}'); do brew cask reinstall "$cask" done