I have bash script which was written for OS X and now ported to Linux. I don't have access to the linux box.The bash script would read values from plist files using the "defaults read" and "PlistBuddy" command available on OS X. Since the linux machine doesn't have these commands,I'm looking for workarounds. Is there library/script (perl preferably) that helps user fetch values from plist files for a given key on a linux machine? I tried using sed/awk, but the output isn't reliable. I've come across scripts like plutil.pl that convert a plist file to other formats.
I have installed a Virtual machine running Ubuntu on my Mac so that I can test my changes before deploying to the actual linux box. Any help is deeply appreciated.