1.标准脚本执行方法
#!/bin/env bash # Name: first_shell.sh # Desc: num1 # Path: /shell01/first_shell.sh echo "hello world" echo "hello world" echo "hello world"
赋予执行权限:
chmod +x first_shell.sh
执行命令:
sh first_shell.sh
#!/bin/env bash # Name: first_shell.sh # Desc: num1 # Path: /shell01/first_shell.sh echo "hello world" echo "hello world" echo "hello world"
赋予执行权限:
chmod +x first_shell.sh
执行命令:
sh first_shell.sh