FIND:

 
linux中查找和过滤的用法:find,grep
linux中查找和过滤的用法:find,grep
linux中查找和过滤的用法:find,grep
linux中查找和过滤的用法:find,grep
linux中查找和过滤的用法:find,grep
 
linux中查找和过滤的用法:find,grep
linux中查找和过滤的用法:find,grep
linux中查找和过滤的用法:find,grep
Grep:
过滤:
 
grep -i -c root /tmp/a.txt --color                查找a.txt中包含root的字符
 
-i:忽略大小写
-c:统计个数
-n:显示查找出来的在第几行
-v:反转查找
^root    :以root开头
root$    :以root结尾
^root$    :空行
 
只显示IP地址:
 
ifconfig eth0|grep "inet addr" |awk '{print $2}'|awk -F : '{print $2}'
 
linux中查找和过滤的用法:find,grep
linux中查找和过滤的用法:find,grep
linux中查找和过滤的用法:find,grep
linux中查找和过滤的用法:find,grep
 
 
 





相关文章:

  • 2022-12-23
  • 2021-04-28
  • 2021-11-24
  • 2023-03-23
  • 2022-12-23
  • 2021-12-15
猜你喜欢
  • 2021-09-14
  • 2021-08-25
  • 2022-12-23
  • 2021-12-05
  • 2021-05-02
  • 2021-12-15
  • 2022-12-23
相关资源
相似解决方案