In the terminal in macOS, I can execute this command manually and it does what I want:
cd ~/Library/Preferences mv Adobe "Adobe.old.$(date +%c)"
I'd like to create a simple script for this, that I can run through Terminal shell. I've tried creating a file with the following contents but it isn't working for me:
mv "~/Library/Preferences/Adobe" "~/Library/Preferences/Adobe.old.$(date +%c)"
I get the following output:
<name>@<machinename> desktop % sh adobecleanup.txt mv: rename ~/Library/Preferences/Adobe to ~/Library/Preferences/Adobe.old.Mon Jan 18 16:44:15 2021: No such file or directory