当前位置:网站首页>grep,egrep,fgrep字符匹配
grep,egrep,fgrep字符匹配
2022-07-21 17:30:00 【zjt597778912】
grep,egrep,fgrep
这三个命令需要使用正则表达式
grep使用
- 使用基本正则表达式定义的模式来过滤文本的命令。
- grep:
- -i:不区分大小写。
- -v:显示没有匹配的行。
- -o:仅仅显示匹配的内容。
- –color:显示颜色。
- -E:extend,使用扩展的正则表达式。
- -A#:1,2,3,#:匹配到的行以及后#行。
- -B#:匹配到的行以及前#行。
- -C#:匹配到的行以及前后#行。
- 例如:
- grep “\<d[a-zA-Z]*\>” file:匹配以字母d开头的单词 。
- egrep:可以使用扩展正则表达式,相当于 grep -E。
- fgrep:fast,快,不支持正则表达式,直接匹配。
边栏推荐
- 职业交易者自用多年的终极突破策略分享(附全套交易模板)
- JS时间和时间戳的转换
- 不断提升认知,从而达到交易的最高级别——稳定盈利(二)
- Formation and destruction of function stack frames (26 pictures help you understand function stack frames in depth)
- 量化交易日记-2021年01月总结
- js bind
- Quantitative transaction Diary - summary in January 2021
- TPS trading strategy with a winning rate of 93.98%
- In quantitative trading, it is judged by the moving average system that the upward (downward) momentum is weakened
- STM32-f40x FSMC信号配置并点亮LCD屏
猜你喜欢
三星6818基于uboot的流水灯程序
C textbox password box setting
vscode添加自定义注释
Self study golang [Chapter 3: the first go language program] use GoLand to create the first go program, the main function and init function, and use go to run Windows commands and realize the data out
ASP.NET Core部署手册:2.Hyper-V虚拟机
量化交易日记-回撤分析-2021年02月6日
Linear table * sequential table (7000 words detailed explanation)
“珠峰”架构强势赋能 第三代荣威RX5/超混eRX5刷新产品力“天花板”
Postman configures the global variable postman sets the global token
三星6818LED驱动的编写
随机推荐
JS时间和时间戳的转换
中信建投开户是安全吗?可以直接进行开户办理吗??
Science and technology create value | cloud expansion technology is listed in the real list · top 100 of China's scientific and technological innovation brands list
JS object deep copy
Formation and destruction of function stack frames (26 pictures help you understand function stack frames in depth)
基于[海思Hi3516dv300]开发的内核定时器中断
海思[Hi3531] Onvif+Gosap自动搜索IP_Discovery和PTZ的实现
Self study golang [3.8 use go language to find the longest substring without repeated characters] exercise code
v-7
Self study the definition of golang [3.5go language array, range keyword] array, and use the for loop to traverse one-dimensional array
C#异常处理 | 连接成功但登陆异常/管道另一端上无任何进程Error: A connection was successfully established with the server, but
try catch finally 中包含return的几种情况,及返回结果
Postman configures the global variable postman sets the global token
Self study golang [3.4go language functions and pointers] define a function that returns one or more values. For the pointer of go language, the pointer cannot operate. For the parameter transmission
Quantitative transaction journal - fallback analysis - February 6, 2021
ASP.NET Core部署手册:2.Hyper-V虚拟机
十年交易员重磅推荐:简单易操作的突破回调策略
Sharing the ultimate breakthrough strategy used by professional traders for many years (with a full set of trading templates)
Linear table * sequential table (7000 words detailed explanation)
Quantitative transaction Diary - summary in February 2021