Shell Tips 发表于 2016-12-20 阅读次数: help tips1234567891011121314151617181920#!/bin/bashhelp(){cat << HELPusage: dd ddk example: 'wowo wowo'HELPexit 0}if [[ $1 == "" || $1 == "-h" ]]; then echo 'what?' helpfiif [[ $1 != "" ]]; then echo $1fiecho -e "\033]0;$1\007" read from terminal123echo input your name:read nameecho your name is ${name}