当前位置:网站首页>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




边栏推荐
- 延迟队列DelayQueue性能测试
- Will causal learning open the next generation of AI? Chapter 9 Yunji datacanvas officially released the open source project of ylarn causal learning
- 事务四大特性(ACID):
- Uniapp video video playback is not completed. It is forbidden to drag the progress bar fast forward
- 堆
- Map interface
- Top 10 international NFT exchanges
- 「游戏引擎 浅入浅出」4.1 Unity Shader和OpenGL Shader
- 一款能模糊的地方都能模糊的测试工具——Wfuzz
- An overview of kernel compilation system
猜你喜欢

Overview of static inner classes and non static inner classes

Interviewer: how to deal with the data loss of redis master-slave cluster switching?

隔离级别

js真伪数组转换

Distributed system architecture theory and components

湖仓一体电商项目背景与架构介绍及基础环境准备

Specify the add method of HashSet

CEPH distributed storage performance tuning (6)

Finally, I was ranked first in the content ranking in the professional field. I haven't been tired in vain during this period. Thanks to CSDN's official platform, I'm lucky and bitter.

Set interface
随机推荐
pg同步多张数据表至mysql 有办法简化配置吗?
Nodejs body parser middleware processes post form data of type multipart / form data, and req.body cannot receive data
sql 语句问题, 求计算相差10分钟以内的数据作为同一批次数据显示
POJ2446 Chessboard【二分图最大匹配】
C program debugging and exception handling (try catch)
What are metauniverse and NFT digital collections?
Gartner authority predicts eight development trends of network security in the next four years
详述try-catch-finally
最新版泛域名证书申请
MySQL扩展
Minimally invasive brain science broke the listing: the company's market value is HK $14.3 billion, and minimally invasive medical is the major shareholder
592. 分数加减运算 : 表达式计算入门题
4. Analysis of the execution process of make modules for general purposes
视频游戏沉迷行为研究综述
Article reproduction: srcnn
Overview of famous inner classes and anonymous inner classes
Chain representation and implementation of queues
Why do you need foreign keys?
Lambda expression
Delay queue performance test