1. set(-C、-o、+o、-u、-v)
  2. grep(-a、-c、-i、-n、-v)
    [dmtsai@study ~]$ grep [-acinv] [--color=auto] '搜尋字串' filename
    選項與參數:
    -a :將 binary 檔案以 text 檔案的方式搜尋資料
    -c :計算找到 '搜尋字串' 的次數
    -i :忽略大小寫的不同,所以大小寫視為相同
    -n :順便輸出行號
    -v :反向選擇,亦即顯示出沒有 '搜尋字串' 內容的那一行!
    --color=auto :可以將找到的關鍵字部分加上顏色的顯示喔!
  3. shopt(-p、-s、-u、-o、-q)
  4. time
  5. read(-p、-a、-t、-r、-u?)
arrow
arrow
    文章標籤
    bash linux
    全站熱搜

    馬修馬羅 發表在 痞客邦 留言(0) 人氣()