#!/bin/bashhello(){echo "hello everone!"}echo "Now going to run function hello()"helloecho "end of function hello()" 结果: ~/Note/test # ./25hello_func.sh Now going to run function hello(
#!/bin/bashecho "what you favorite color?"select color in "red" "blue" "green" "white" "black"dobreakdoneecho "you have selectd $color" 结果: ~/Note/test # ./23select.sh what you favorite colo