How to append to string using plistbuddy

146 Views Asked by At

plist has a field that I want to edit like

<string>$(STH)</string>

I want to append to it the $(STH)-sometext so it will be like something-sometext

Now the issue I have is plistbuddy doesn't like setting

PlistBuddy -c "Set someentryinplist $(STH)-sometext"

because bash says that the command is not found. Whats the correct way of appending a string in plist xml?

0

There are 0 best solutions below