shell脚本执行方法

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

原文地址:https://www.cnblogs.com/chong-zuo3322/p/14211929.html