[Solved] zsh/bash string to array not working using parentheses

cat “73276948.sh” #!/bin/bash STR=”one two three” array=($STR) echo “${array[@]}” # prints: one two three echo “len: ${#array[@]}” # prints: len: 1 echo “1ST: ${array[0]}” # prints: one two three echo “2ND: ${array[1]}” # prints: one two three echo “3RD: ${array[2]}” # prints: one two three echo “Using loop:” for (( indx = 0; indx < … Read more

[Solved] Making a terminal executable file that changes the date on your Mac [closed]

You can change the date of the mac using the following command from the terminal. date -u {month}{day}{hour}{minute}{year} Replaced bracket with a two digit number. To set, October 16th 2020 21:16 would become the following command: date 1016211620 Or you can create apple script to do it: set ntpdPID to do shell script “systemsetup -getusingnetworktime; … Read more