例一
#!/bin/sh
# purpose: print out current directory name and contents
pwd
ls
Run Code Online (Sandbox Code Playgroud)
例二
# purpose: print out current directory name and contents
#!/bin/sh
pwd
ls
Run Code Online (Sandbox Code Playgroud)
有什么区别 - 如果我把第一行作为注释(#),#!/bin/sh作为第二行,将会发生什么?
是什么意思#!/bin/sh?