Method 1 function fn. { shell commands. } 2. Method 2 fn(). { shell commands. } #!/bin/bash hello(). { if [ $# -eq 0 ] then echo "Hello World" return.
確定! 回上一頁