原创 Linux-擴展正規表示法
8.正規表示法本章同步視頻:https://edu.51cto.com/sd/e48748.3 延伸正規表示法RE 字符意義與範例+意義:重複『一個或一個以上』的前一個 RE 字符範例:搜尋 (god) (good) (goood)..
原创 Linux-scripts-選擇結構
9.Scripts本章同步視頻:https://edu.51cto.com/sd/e48749.4 選擇結構9.4.1 利用 if .... then1.單分支選擇結構(1)格式1if conditionthen statement
原创 Linux-scripts-位置參數等特殊變量
9.Scripts本章同步視頻:https://edu.51cto.com/sd/e48749.3.3 Shell script 的默認變數($0, $1...)變量含義$0當前腳本的文件名。$n(n≥1)傳遞給腳本或函數的參數。n 是一個
原创 Linux-scripts-條件判斷
9.Scripts本章同步視頻:https://edu.51cto.com/sd/e48749.3 善用判斷式9.3.1 利用 test和[ ] 的測試功能Shell test 命令的用法爲:test expression當 test 判斷
原创 Linux-scripts-簡單腳本和腳本的執行
9.Scripts本章同步視頻:https://edu.51cto.com/sd/e48749.1 什麼是 Shell scripts shell script 是利用 shell 的功能所寫的一個『程序 (program)』,
原创 Linux-基礎正規表示法
8.正規表示法本章同步視頻:https://edu.51cto.com/sd/e48748.1 正規表示法 正規表示法就是處理字符串的方法,他是以行爲單位來進行字符串的處理行爲,正規表示法透過一些特殊符號的輔助,可以讓使用者輕易
原创 Linux-scripts-循環控制
9.Scripts本章同步視頻:https://edu.51cto.com/sd/e48749.5.6 break 1.格式與說明break n n 表示跳出循環的層數,如果省略 n,則表示跳出當前的整個循環。break 關鍵字
原创 Linux-shell操作環境和通配符及特殊符號
7.Shell本章同步視頻:https://edu.51cto.com/sd/e48747.4 Bash Shell 的操作環境7.4.1 路徑與指令搜尋順序n 以相對/絕對路徑執行指令,例如『 /bin/ls 』或『 ./ls 』;n
原创 Linux-uniq和wc
7.Shell本章同步視頻:https://edu.51cto.com/sd/e48742.uniq - report or omit repeated lines(1)語法[dmtsai@study ~]$ uniq [-ic]選項與參數
原创 Linux-shell-管道-cut-grep
7.Shell本章同步視頻:https://edu.51cto.com/sd/e48747.6 管道命令 (pipe)7.6.1 什麼是管道n 管線命令僅會處理 standard output,對於 standard error outp
原创 Linux-文件分隔split和總結
7.Shell本章同步視頻:https://edu.51cto.com/sd/e48747.6.6 分割命令: split1.split - split a file into pieces(1)語法[dmtsai@study ~]$ sp
原创 Linux-shell-數據流重導向
7.Shell本章同步視頻:https://edu.51cto.com/sd/e48747.5 數據流重導向7.5.1 什麼是數據流重導向n 標準輸入 (stdin) :代碼爲 0 ,使用 < 或 << ;n 標準輸出 (stdou
原创 Linux-paste文件合併
7.Shell本章同步視頻:https://edu.51cto.com/sd/e48743.paste - merge lines of files(1)語法[dmtsai@study ~]$ paste [-d] file1 file2選
原创 Linux-sort
7.Shell本章同步視頻:https://edu.51cto.com/sd/e48747.6.3 排序命令: sort, wc, uniq1.sort - sort lines of text files Sort將文件的每一行
原创 Linux-別名alias和歷史命令history
7.Shell本章同步視頻:https://edu.51cto.com/sd/e48747.3 命令別名與歷史命令7.3.1 命令別名 alias, unalias1.查看別名[root@localhost ~]# alias alias