Basic Bash Script


Read User Input and switchhtml

while true; do
        read -p "Please Choose Your Target" input
  case $input in
        [1]) myVar="A"; break;;
        [2]) myVar="B"; break;;
        * ) echo "Please Choose Your Target";;
   esac
done

String contactjava

a='hello'
b='world'
c=$a$b
echo $c

http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-8.html#ss8.2 shell

http://tldp.org/LDP/abs/html/complexfunct.html bash

http://stackoverflow.com/questions/6212219/passing-parameters-to-a-bash-function spa

http://stackoverflow.com/questions/8968752/how-to-check-that-a-parameter-was-supplied-to-a-bash-script code

相關文章
相關標籤/搜索