#!/bin/bash function bar(){ echo "This is bar function" } function foo() { echo "This is foo function" } if [ $1 == bar ];then bar elif [ $1 == foo ] ;then foo else echo "script foo|bar" 2
cat optimize.sh#!/bin/bash function General-Parameters(){ echo "This is General-Parameters function" } function test() { echo "test function" } if [ $1 == bar ];then General-Par
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号