Skip to content

Instantly share code, notes, and snippets.

@RamseyK
Last active October 20, 2018 22:59
Show Gist options
  • Save RamseyK/06e0b14ebb038a08f3b74fa66e16734e to your computer and use it in GitHub Desktop.
Save RamseyK/06e0b14ebb038a08f3b74fa66e16734e to your computer and use it in GitHub Desktop.
plistp - Simple shell wrapper for PlistBuddy to print plists
#!/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