How to run a shell script on a Unix console or Mac terminal?

前端 未结 7 1096
执念已碎
执念已碎 2020-11-28 16:54

I know it, forget it and relearn it again. Time to write it down.

7条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-28 17:34

    For the bourne shell:

    sh myscript.sh
    

    For bash:

    bash myscript.sh
    

提交回复
热议问题