start to STAR
顯示具有
Bash Script
標籤的文章。
顯示所有文章
顯示具有
Bash Script
標籤的文章。
顯示所有文章
2012年8月6日 星期一
Bash Script - Vim 多行註解
[增加註解]
1. Esc to command mode
2. 游標移到要註解的第一行
3. ctrl + v
4. 用上下來選取要標註解的範圍
5. I
6. 加入要註解的符號 (ex: #, //)
7. ESC (ESC後才會加入註解)
[取消註解]
1. Esc to command mode
2. 移到要刪除註解的開頭
3. ctrl + v
4.
用上下來選取要移除註解的範圍
5. Delete
2012年7月26日 星期四
Bash Script - default value
#if input $1 then print $1
#if no input print pig
test=${1:-"pig"}
echo "$test"
2012年7月23日 星期一
Bash Script - Random select element from array
閱讀更多 »
Bash Script - check argument in array
閱讀更多 »
2012年7月22日 星期日
Bash Script - 陣列及for迴圈範例
閱讀更多 »
Bash Script - Read file for bash
閱讀更多 »
Bash Script - If...Else
閱讀更多 »
首頁
訂閱:
文章 (Atom)