linux学习笔记10——grep

基本用法

  grep [选项] [要查找的内容] [源文件]

例如

  查找test文件中的boot出现的行数 

grep -n boot test.log  # -n是显示行数,boot是要查看的内容, test.log是文件名

 

 

 

 

posted @ 2022-09-12 12:37  o蹲蹲o  阅读(20)  评论(0编辑  收藏  举报