⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex59.sh

📁 Shall高级编程
💻 SH
字号:
#!/bin/bashJUST_A_SECOND=1funky (){ # This is about as simple as functions get.  echo "This is a funky function."  echo "Now exiting funky function."} # Function declaration must precede call.fun (){ # A somewhat more complex function.  i=0  REPEATS=30  echo  echo "And now the fun really begins."  echo  sleep $JUST_A_SECOND    # Hey, wait a second!  while [ $i -lt $REPEATS ]  do    echo "----------FUNCTIONS---------->"    echo "<------------ARE-------------"    echo "<------------FUN------------>"    echo    let "i+=1"  done}  # Now, call the functions.funkyfunexit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -