Extract file to a local plist file

99 Views Asked by At

Situation: on macOS, with a shell script, or a terminal command, I need to extract an e-mail from a plist, generated who have a deep and large structure

after multiple and I have the below:

TotoEmailAddress [email protected]

I need the e-mail under the 2 string.

There is only one TotoEmailAddress on the plist file

I tried with the below command but without success:

/usr/libexec/PlistBuddy -c print "TotoEmailAddress" com.bob.toto.plist

I cannot share the full plist but let me know if I need to share more informations..

0

There are 0 best solutions below