zhanghong 发表于 2018-8-30 07:24:14

shell脚本实例之Charpter8-14

#!/bin/bash  

  
echo "Pleas input two integer number(the first num must be smaller than the second one):"
  
read firstNum secondNum
  

  
fun0()
  
{
  
while [ $1 -lt $2 ]
  
do
  
      echo "Your input is:" "$firstNum " "$secondNum"
  
      break
  
done
  
}
  

  
fun0 $firstNum $secondNum
  

  
declare -a arr1
  
let i=firstNum
  
arr1=(
  
      $(
  
      while ((i
页: [1]
查看完整版本: shell脚本实例之Charpter8-14