{
 "grep:在文字中搜尋#4": {
  "type": "table",
  "head": [
   "行",
   "內容",
   "找到?"
  ],
  "rows": [
   [
    "2",
    "ERROR 資料庫逾時",
    "是"
   ],
   [
    "4",
    "ERROR 磁碟寫入失敗",
    "是"
   ],
   [
    "3",
    "error 付款閘道失敗",
    "否"
   ]
  ],
  "reveal": [
   0,
   1,
   3
  ],
  "widths": [
   1,
   4,
   1.5
  ]
 },
 "grep:在文字中搜尋#5": {
  "type": "table",
  "head": [
   "選項",
   "作用"
  ],
  "rows": [
   [
    "-i",
    "忽略大小寫"
   ],
   [
    "-n",
    "顯示行號"
   ],
   [
    "-v",
    "反向,印出不含的行"
   ],
   [
    "-c",
    "只顯示符合的行數"
   ],
   [
    "-r",
    "遞迴搜尋整個目錄"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ]
 },
 "grep:在文字中搜尋#7": {
  "type": "bar",
  "labels": [
   "區分大小寫",
   "忽略大小寫"
  ],
  "values": [
   2,
   3
  ],
  "unit": "行",
  "highlight": 1,
  "reveal": [
   0,
   0,
   1,
   2
  ]
 },
 "find:依名稱與類型找檔案#1": {
  "type": "cards",
  "cards": [
   {
    "title": "grep",
    "points": [
     "找檔案內容裡的文字"
    ]
   },
   {
    "title": "find",
    "points": [
     "找檔案本身",
     "依名稱、類型、大小、時間"
    ]
   }
  ],
  "reveal": [
   0,
   1,
   2
  ]
 },
 "find:依名稱與類型找檔案#3": {
  "type": "table",
  "head": [
   "條件",
   "用途"
  ],
  "rows": [
   [
    "-name 樣式",
    "依檔名比對,可用 * 與 ?"
   ],
   [
    "-type f",
    "一般檔案"
   ],
   [
    "-type d",
    "目錄"
   ]
  ],
  "reveal": [
   0,
   1,
   3
  ]
 },
 "find:依名稱與類型找檔案#4": {
  "type": "flow",
  "nodes": [
   {
    "label": "server"
   },
   {
    "label": "access.log"
   },
   {
    "label": "app.log"
   },
   {
    "label": "archive"
   },
   {
    "label": "old-2026-10.log"
   },
   {
    "label": "conf"
   },
   {
    "label": "app.conf"
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5,
   7
  ],
  "edges": [
   [
    0,
    1
   ],
   [
    0,
    2
   ],
   [
    0,
    3
   ],
   [
    3,
    4
   ],
   [
    0,
    5
   ],
   [
    5,
    6
   ]
  ]
 },
 "find:依名稱與類型找檔案#6": {
  "type": "table",
  "head": [
   "指令",
   "結果"
  ],
  "rows": [
   [
    "find server -type d",
    "server、archive、conf"
   ],
   [
    "-type f -name \"app*\"",
    "app.log、app.conf"
   ]
  ],
  "reveal": [
   0,
   1,
   1,
   1,
   2,
   2,
   2
  ]
 },
 "find:依名稱與類型找檔案#7": {
  "type": "cards",
  "cards": [
   {
    "title": "不加引號",
    "points": [
     "Shell 先展開 *",
     "find 拿到錯誤參數"
    ]
   },
   {
    "title": "加上引號",
    "points": [
     "原封不動交給 find",
     "由 find 自己比對"
    ]
   }
  ],
  "reveal": [
   0,
   2
  ]
 },
 "管線與 sort、uniq:統計出現次數#2": {
  "type": "flow",
  "nodes": [
   {
    "label": "grep ERROR",
    "sub": "找出 ERROR 行"
   },
   {
    "label": "wc -l",
    "sub": "數有幾行"
   },
   {
    "label": "2",
    "sub": "兩行 ERROR",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ]
 },
 "管線與 sort、uniq:統計出現次數#3": {
  "type": "table",
  "head": [
   "指令",
   "排序方式"
  ],
  "rows": [
   [
    "sort",
    "文字,字母由小到大"
   ],
   [
    "sort -r",
    "反向,由大到小"
   ],
   [
    "sort -n",
    "依數字大小"
   ],
   [
    "sort -rn",
    "數字由大到小"
   ]
  ],
  "reveal": [
   1,
   2,
   3,
   4
  ]
 },
 "管線與 sort、uniq:統計出現次數#6": {
  "type": "table",
  "head": [
   "指令",
   "結果"
  ],
  "rows": [
   [
    "sort",
    "10、100、9"
   ],
   [
    "sort -n",
    "9、10、100"
   ]
  ],
  "reveal": [
   1,
   1,
   2,
   2,
   2,
   2
  ]
 },
 "管線與 sort、uniq:統計出現次數#7": {
  "type": "cards",
  "cards": [
   {
    "title": "uniq",
    "points": [
     "合併連續相同的行"
    ]
   },
   {
    "title": "uniq -c",
    "points": [
     "前面顯示重複次數"
    ]
   },
   {
    "title": "只比相鄰行",
    "points": [
     "red、blue、red 仍是三行",
     "使用前先 sort"
    ]
   }
  ],
  "reveal": [
   0,
   2,
   3,
   3
  ]
 },
 "cut:擷取欄位#2": {
  "type": "table",
  "head": [
   "選項",
   "意思"
  ],
  "rows": [
   [
    "-d",
    "分隔字元,只能一個字元;預設是 Tab"
   ],
   [
    "-f",
    "第幾欄,從 1 開始;-f1,3 或 -f2-4"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   2
  ]
 },
 "cut:擷取欄位#6": {
  "type": "table",
  "head": [
   "使用者",
   "Shell"
  ],
  "rows": [
   [
    "root",
    "bash"
   ],
   [
    "daemon",
    "nologin"
   ],
   [
    "student",
    "bash"
   ]
  ],
  "reveal": [
   0,
   0,
   1,
   2,
   3
  ]
 },
 "cut:擷取欄位#7": {
  "type": "flow",
  "nodes": [
   {
    "label": "IP 位址",
    "sub": "第 1 欄"
   },
   {
    "label": "請求方法",
    "sub": "第 2 欄"
   },
   {
    "label": "網頁路徑",
    "sub": "第 3 欄"
   },
   {
    "label": "狀態碼",
    "sub": "第 4 欄"
   }
  ],
  "reveal": [
   0,
   0,
   4,
   4,
   4
  ]
 }
}