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




边栏推荐
- pg同步多张数据表至mysql 有办法简化配置吗?
- 正则表达式去除两端空格
- Regular expressions remove spaces at both ends
- feign的动态代理
- What should I do if I can't see any tiles on SAP Fiori launchpad?
- MySQL extensions
- PySide6/PyQt开发经验总结(2) - 设置快捷键
- Seata 在蚂蚁国际银行业务的落地实践
- Distributed system architecture theory and components
- Xianghe meat cake in memory
猜你喜欢

Enjoy the luxury meta universe louis:the game, and participate in the NFT series digital collection white roll activity | tutorial

A survey of video game addictive behavior research

II. Analysis of the execution process of make menuconfig

程序员培训学习后好找工作吗

Article reproduction: srcnn

"Game engine light in light out" 4.1 unity shader and OpenGL shader

视频游戏沉迷行为研究综述

分布式系统架构理论与组件

Cvpr22 | graph neural architecture search of relational consciousness

Baoli food listed on Shanghai Stock Exchange: annual revenue of 1.578 billion, market value of 5.8 billion
随机推荐
改变线程状态的方法
堆
记忆中的香河肉饼
The sparksubmit. Main () method submits external parameters and remotely submits the standalone cluster task
[nuxt 3] (XII) project directory structure 2
为什么需要外键?
Do you really understand CMS garbage collector?
Summary of common methods of ArrayList
xshell7可以登录mysql虚拟机不能登陆mysql
POJ2594 Treasure Exploration【二分图最小路径覆盖】【Floyd】
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 (
详述反射中构造方法、属性和普通方法
Nodejs body parser middleware processes post form data of type multipart / form data, and req.body cannot receive data
程序员培训学习后好找工作吗
关于 CMS 垃圾回收器,你真的懂了吗?
Is it easy to find a job after programmer training and learning
Aike AI frontier promotion (7.27)
Laboratory procedures and references of chloramphenicol acetate
What are metauniverse and NFT digital collections?
文章复现:SRCNN