Linux-bash脚本1
脚本1:
# vi test.sh
-------------------------
# !/bin/bash
echo $1,$2,$3
echo "文件名" $0
echo "参数变量 "$#
echo "all "$*
echo "return "$?
-------------------------
# bash test.sh 1 2 3
脚本1:
# vi test.sh
-------------------------
# !/bin/bash
echo $1,$2,$3
echo "文件名" $0
echo "参数变量 "$#
echo "all "$*
echo "return "$?
-------------------------
# bash test.sh 1 2 3