Mac Navicat 16 Trial Script

1. The unlimited trial script is as follows 

#!/bin/bash
#/usr/libexec/PlistBuddy -c "print" ~/Library/Preferences/com.navicat.NavicatPremium.plist
/usr/libexec/PlistBuddy -c "Delete :91F6C435D172C8163E0689D3DAD3F3E9" ~/Library/Preferences/com.navicat.NavicatPremium.plist
/usr/libexec/PlistBuddy -c "Delete :B966DBD409B87EF577C9BBF3363E9614" ~/Library/Preferences/com.navicat.NavicatPremium.plist

rm -rf ~/Library/Application\ Support/PremiumSoft\ CyberTech/Navicat\ CC/Navicat\ Premium/.*

2. Explanation

Instructions for plist files and PlistBuddy are here: Mac plist files

The above 2 lines are to delete the key-value pairs in the plist configuration file, which can be executed with confidence. The following is to delete all files under the path
cd ~/Library/Application\ Support/PremiumSoft\ CyberTech/Navicat\ CC/Navicat\ Premium . Note that some path names have spaces in them, so they need to be escaped, such as the folder Application Support, input on the command line must be used: Application\ Support so that it can be correctly recognized, without escape characters, it will cause a command error.



Guess you like

Origin blog.csdn.net/tales522/article/details/132009060