shell_programming.sh
来自「my simple shell scipts just for fun :] 」· Shell 代码 · 共 88 行
SH
88 行
########################################## программирование на shell BASH# Суханов Таганрог 2008##########################################! /bin/bash -xcleardatewhereis bash #finding bash shell################################## -lt ( < )# -gt ( > )# -le ( <= )# -ge ( >= )# -eq ( == )# -ne ( != )##################------------------------------------------------------------------function SuhShellFunc { local STR="Suhanoff shell programming_local" echo $STR}#------------------------------------------------------------------function SuhShellFuncParam { printf '%s ' $1 printf '%s ' $2 printf '%s ' $3 printf '%s ' $4 printf '%s \n\v' $5}#------------------------------------------------------------------#------------------------------------------------------------------#------------------------------------------------------------------#------------------------------------------------------------------STR="Suhanoff shell programming"#OPTIONS="1 2"##select opt in $OPTIONS ; do# if [ "$opt" = "1" ] ; then# echo done# exit# elif [ "$opt" = "2" ] ; then# echo Hello World# else# clear# echo bad option# fi#done#-----------------------------------------------------------------man bash > bash.txtman ssh > ssh.txtman dd > dd.txtman monit > monit.txtif [ "$STR" = "Suhanoff shell programming" ] ; then echo "РАВНО"else echo "НЕ РАВНО"fifor i in `seq 1 10` ;do echo "LOOP step: " $i done ##while [ 1 ] ; do # Бесконечный цикл#doneSuhShellFuncSuhShellFuncParam Добрый день мой господинecho $STR#########################################
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?