Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have fetched multiple dictionaries from multiple plist. after i saved them in array . now i have to merge or write this array to new plist. Is der any command to do this ?

Please find below code

mkdir $target_directory

find . -name 'feature-manifest.plist' |              
    while read line; do
    cp -- "$line" $target_directory ;


    array+=$(/usr/libexec/PlistBuddy -c "print :ModulePlugin:" $line)

    echo "echo value: $array"


echo "Total files in array : $array"

echo "Total files in array : ${#array[*]}"

From above script i am writing ModulePlugin Dict to array from multiple plist's in different folders, i wanna write this array to new plist . Is der any command to do this ?

share|improve this question
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.