About Bash Shebang

To create a cross-platform bash script myscript.sh, add this shebang line as the first line of the file:

1
#!/usr/bin/env bash

Then make this file executable with:

1
$ chmod u+x myscript.sh

Programming Dev Ops Bash