How to run a Shell or .sh script on macOS

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Couldn't follow this - not for beginners for sure.

lidsvillebrown
Автор

What language was she speaking? Was that supposed to help anyone who was unfamiliar with running a shell script? Because I learned nothing from that.

cneville
Автор

There is no need to type full path after using "chmod +x script.sh". Either use "sh script.sh" or ("chmod +x script.sh" and "./script.sh")

tim-cca
Автор

Same as Linux just instead of:
"sh complete-path-to-script"
I write:
"./complete-path-to-script"

MrRefael
Автор

"n fact, on macOS, a shell script will likely run and accomplish what it was written to do while on a Windows 10 system, it is far more likely to fail." You're a joke.

rmsv
visit shbcf.ru