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




边栏推荐
- 改变线程状态的方法
- An overview of kernel compilation system
- multi-table query
- BSP video tutorial issue 21: easy one key implementation of serial port DMA variable length transceiver, support bare metal and RTOS, including MDK and IAR, which is more convenient than stm32cubemx (
- 延迟队列DelayQueue性能测试
- CVPR22 | 关系意识的图神经架构搜索
- 详述HashSet的add方法
- Forward pre check and reverse pre check
- Gan: generate adversarial networks
- Detail try catch finally
猜你喜欢

heap

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

Background and framework introduction and basic environment preparation of hucang integrated e-commerce project

How to ask questions on the road for the first time - necessary skills for self-study (with live playback)

Xposed+fdex2 app shelling (black cat complains about app shelling)

Open source project - taier1.2 release, new workflow, tenant binding simplification and other functions

BSP视频教程第21期:轻松一键实现串口DMA不定长收发,支持裸机和RTOS,含MDK和IAR两种玩法,比STM32CubeMX还方便(2022-07-24)

2022 global Vocational Education Industry Development Report

II. Analysis of the execution process of make menuconfig

Error: slf4j: class path contains multiple slf4j bindings
随机推荐
Distributed system architecture theory and components
延迟队列DelayQueue性能测试
Detail the execution process of JDBC query method
Delay queue performance test
Is it easy to find a job after programmer training and learning
CEPH distributed storage performance tuning (6)
【萌新解题】斐波那契数列
SSM实战项目-前后分离(简单易懂)
Vi. analysis of makefile.build
Flinksql synchronizes data from Oracle to Doris, with a total of more than 50 fields and more than 30 million entries in Oracle tables
记忆中的香河肉饼
Baoli food listed on Shanghai Stock Exchange: annual revenue of 1.578 billion, market value of 5.8 billion
QT | qcheckbox of control
关于2022年3月9日之后Typora登录不了--已解决
NFT mall /nft blind box / virtual blind box /nft transaction / customizable second opening
GAN:生成对抗网络 Generative Adversarial Networks
String to realize fuzzy query
2021-03-15
Set interface
Summary of common methods of ArrayList