Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save geoffrepoli/57302ed39be6b883423091635c5aeea2 to your computer and use it in GitHub Desktop.
Save geoffrepoli/57302ed39be6b883423091635c5aeea2 to your computer and use it in GitHub Desktop.
lists all non-Apple applications names and versions, separated by "-" delimiter
find /Applications -name *.app -maxdepth 2 -exec \
bash -c '[[ ! $(defaults read "{}"/Contents/Info.plist CFBundleIdentifier) =~ "com.apple" ]] \
&& echo "$(basename "{}" | sed 's/.app.*//')-$(defaults read "{}"/Contents/Info.plist CFBundleShortVersionString)"' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment