plist - Copy all domain values to another computer using defaults write -


i trying copy r settings 1 mac another. can export values domain using

defaults read org.r-project.r > r.plist 

however, cannot figure out how write values. tried following.

defaults write org.r-project.r < r.plist 

this fails due incorrect command syntax (prints out help). each of following commands yields could not parse: "append. try single-quoting it.

defaults write org.r-project.r `cat r.plist`  defaults write org.r-project.r ''`cat r.plist`''  tmp=$(echo \'`cat r.defaults.plist`\') defaults write org.r-project.r $tmp 

if copy contents of $tmp variable above , paste directly command line, works. so, know there no syntax errors in r.plist.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -