当前位置:网站首页>18. Text processing tool -grep
18. Text processing tool -grep
2022-07-27 13:13:00 【51CTO】
grep
For text search , Print matching lines
Pattern : Filter conditions written by regular expression characters and text characters
Format grep [option] pattern [file]...
Common options
--color=auto Color the matched text
-m # matching # Stop after
-v Display not pattern Matched rows
-i Ignore character case
-n Show matching line numbers
-c Count matching rows
-o Show only strings that match
-q silent mode , Do not output any information
-A # after, after # That's ok
-B # before, front # That's ok
-c # context, Before and after # That's ok
-e Implement logic between multiple options or Relationship
-w Match the whole word
-E Use ere, amount to egrep( Extended regularization )
-F Regular expressions are not supported , amount to fgrep
-f file Process according to the schema file
-r Recursive directory , But don't handle soft links
-R Recursive directory , But dealing with soft links




边栏推荐
猜你喜欢

Multi activity disaster recovery construction after 713 failure of station B | takintalks share

What are metauniverse and NFT digital collections?

2022 global Vocational Education Industry Development Report

概述静态内部类与非静态内部类

堆

Map interface

Eccv2022 | Ru & Google proposed to use clip for zero shot target detection!

What should I do if I can't see any tiles on SAP Fiori launchpad?

字节跳动的 Flink OLAP 作业调度和查询执行优化实践

Will causal learning open the next generation of AI? Chapter 9 Yunji datacanvas officially released the open source project of ylarn causal learning
随机推荐
一款能模糊的地方都能模糊的测试工具——Wfuzz
SSM practical project - front back separation (easy to understand)
Baoli food listed on Shanghai Stock Exchange: annual revenue of 1.578 billion, market value of 5.8 billion
Getting started for beginners: build your own blog with WordPress
Seata 在蚂蚁国际银行业务的落地实践
flinksql从Oracle同步数据到Doris,一共50几个字段,Oracle表中3000多万条
heap
正向预查和反向预查
Dominoes staged: the beginning and end of the three arrow capital crash
Map interface
Firefox 103 release, faster and more secure
爱可可AI前沿推介(7.27)
初学者入门:使用WordPress搭建一个专属自己的博客
湖仓一体电商项目背景与架构介绍及基础环境准备
4. Analysis of the execution process of make modules for general purposes
如何获取Class类对象
详述try-catch-finally
Specify the add method of HashSet
Lambda 表达式
Detail try catch finally