grep的全稱:global search regular and print out the line 雷同與windows環境的ctrl+F
查看日誌:cat test.log
-n 展示行數
cat 從頭到尾讀
head 從頭部讀
tail 從尾部讀
理解以上命令就可以實戰查詢日誌了
grep -n “目標日誌” test.log
cat test.log | head -n +100 | head -n 20
grep的全稱:global search regular and print out the line 雷同與windows環境的ctrl+F
查看日誌:cat test.log
-n 展示行數
cat 從頭到尾讀
head 從頭部讀
tail 從尾部讀
理解以上命令就可以實戰查詢日誌了
grep -n “目標日誌” test.log
cat test.log | head -n +100 | head -n 20
根據提示,賦權限,刪除文件等 jimmy@MacBook-Pro ~ % brew link node Linking /usr/local/Cellar/node/20.0.0... Er
# 假設puzzle是一個包含多個字符串的列表,每個字符串都是同一長度的,代表字母網格的一行 puzzle = [ "JGJGDDAOYD", "IDGFHSPOSA", "FGDIOSAFSC