Last active
October 20, 2018 22:59
-
-
Save RamseyK/06e0b14ebb038a08f3b74fa66e16734e to your computer and use it in GitHub Desktop.
plistp - Simple shell wrapper for PlistBuddy to print plists
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [[ ! $1 ]] || [[ ! -f $1 ]]; then | |
echo "Provide a valid file" | |
exit | |
fi | |
/usr/libexec/PlistBuddy -x -c "Print" $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment