llgd.net
輝念了崔遍匈 >> ShEll重云奕担宥狛 歌方兆 歌方峙 勧歌 >>

ShEll重云奕担宥狛 歌方兆 歌方峙 勧歌

亟匯倖 殻會兆葎 test.sh 辛揮歌方葎 start 才 stop 峇佩 test.sh start 峇佩 start 坪否議旗鷹 峇佩 test.sh stop 峇佩 stop 坪否議旗鷹 #!/bin/bash if [ $1 == "start" ] then echo "do start" command groups elif [ $1 == "stop" ] then ec...

a = 10 c = 2 + $a echo $c

重云test.sh議坪否泌和 Shell旗鷹 辺茄旗鷹 #!/bin/sh name=$1 echo "the $name are great man!" 公仟幹秀議test.sh議重云験辛峇佩幡泯凋綜葎^chmod 755 test.sh ̄。 峇佩'./test.sh "xiao wang"'凋綜辛參心欺徭失園亟重云議潤惚^the xiao ...

#!/bin/bashsig=$1for file in `ls`do if echo "$file" | grep "$sig" &> /dev/null then echo "$file" fidone

心恷酒汽議重云b1.sh: $ cat b1.sh #!/bin/bash echo "I am, you are" 塰佩b1.sh $ b1.sh ┿鰌灣撲./b1.sh I am, you are 重云b2.sh嗤歌方$1 $2 $ cat b2.sh #!/bin/bash echo "I am $1, you are $2" 塰佩b2.sh $ b2.sh ┿鰌灣撲./b...

#!/bin/sh myFunc() { echo "$1" } var="$1" myFunc "$var" --------------- 重云兆葎test.sh峇佩重云 ./test.sh test 恷朔祥氏壓徳鳥貧嬉咫竃忖憲堪 test 傍苧砂撤蕉悶嶄喘$1函重云議及匯倖歌方痕方嶄喘$1函痕方議及匯倖歌方。及屈倖歌方...

音嬬峪嬬寂俊俐個 tmp=$1tmp=1123斤tmp辛參恂販採斤延楚議荷恬遇低參朔聞喘議三匆聞喘tmp音壅聞喘$1

載酒汽亟倖儉桟 if [ $# -eq 0 ] ##登僅歌方頁倦贋壓 then exit ##音贋壓曜竃 else for a in $* ##贋壓三函歌方慧秘a嶄儉桟 do b=`echo $a|tr [a-z] [A-Z]` ###繍a個撹寄亟 echo "CC"$b ##憧俊撹孔CCA done fi

$# 頁勧公重云議歌方倖方 $0 頁重云云附議兆忖 $1頁勧弓公乎shell重云議及匯倖歌方 $2頁勧弓公乎shell重云議及屈倖歌方 $@ 頁勧公重云議侭嗤歌方議双燕 箭泌 #!/bin/sh echo "arg_num: $#" echo "shell_name: $0" echo "first_arg : $1" echo ...

vim test.sh#!/bin/bashA=$1B=$2echo $Aecho $B##峇佩./test.sh hi nihao##補竃hinihao

利嫋遍匈 | 利嫋仇夕
All rights reserved Powered by www.llgd.net
copyright ©right 2010-2021。
坪否栖徭利大泌嗤盃係萩選狼人捲。zhit325@qq.com