Skip to content

Instantly share code, notes, and snippets.

@eliseomartelli
Created April 6, 2021 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eliseomartelli/0ded9d996cb15a0fcf71c75ee952bff9 to your computer and use it in GitHub Desktop.
Save eliseomartelli/0ded9d996cb15a0fcf71c75ee952bff9 to your computer and use it in GitHub Desktop.
#!/bin/bash
KEXT_DIR="EFI/OC/Kexts"
FILES=`find $KEXT_DIR -depth 1 | sort`
for f in $FILES
do
plutil -p $f/Contents/Info.plist |
awk '/CFBundleShortVersionString/ {print substr($3, 2, length($3)-2)}\
/CFBundleName/ {print substr($3, 2, length($3)-2)}' |
tr '\n' '\t';
printf "\n"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment