標籤:1. cat cat is used to read, display, or concatenate the contents of a filecat file.txt //show the content of file.txt 顯示file.txt中的內容cat file.txt file1.txt.... //show the content of
標籤:adb shell as root after device rootedonce device rooted, we must perform "su" before we get root permission in adb shell,this is not convenient in some situations,so there have a method to get permission without perform "su".adb shellsumount -o
標籤:if語句1) if ... else 語句if ... else 語句的文法:if [ expression ]then Statement(s) to be executed if expression is truefi如果 expression 返回 true,then 後邊的語句將會被執行;如果返回 false,不會執行任何語句。最後必須以 fi 來結尾閉合 if,fi 就是 if 倒過來拼字,後面也會遇見。注意:expression 和方括弧([
標籤:不看筆記,長時間不用自己都忘了,還是得經常看看筆記啊。 一個簡單的shell程式shell結構1、#!指定執行指令碼的shell2、#注釋行3、命令和控制結構建立shell程式的步驟第一步:建立一個包含命令和控制結構的檔案第二步:修改這個檔案的許可權使它可以執行。 使用chmod u+x第三步:執行shell sh
標籤:abs bash-shell advanced我喜歡的一句話the only way to really learn scripting is to write scripts 學習指令碼的唯一方法就是寫指令碼更好的命令列參數檢測 E_WRONGARGS=85 # Non-numerical argument (bad argument format). 41 # 42 #