当前位置:网站首页>Grep output with multiple colors- Grep output with multiple Colors?
Grep output with multiple colors- Grep output with multiple Colors?
2022-06-30 18:05:00 【Superior virtue and weak water】
problem :
Is there an elegant method in bash for running grep against a text file with two or more patterns, and each pattern that matches is output in a different color?bash Is there an elegant way to run against a text file with two or more schemas grep , And each matching pattern is output in a different color ?
So a line that matches on MALE and AUGUST would output MALE in blue and AUGUST in orange? Then match MALE and AUGUST A line of will output blue MALE And orange AUGUST Do you ?I am open to the use of sed , awk , grep and crayons or others. I would like to use sed 、 awk 、 grep And crayons or other .
Solution :
Reference resources : https://stackoom.com/en/question/1AJs5边栏推荐
- DeFi借贷协议机制对比:Euler、Compound、Aave和Rari Capital
- Flutter custom component
- MySQL reports that the column timestamp field cannot be null
- Taishan Office Technology Lecture: how to align and draw words of different sizes on the same line
- 【剑指Offer】53 - I. 在排序数组中查找数字 I
- Share 5 commonly used feature selection methods, and you must see them when you get started with machine learning!!!
- Horizontal visual error effect JS special effect code
- Apache 解析漏洞(CVE-2017-15715)_漏洞复现
- Redis (III) - transaction
- 基于SSH的通讯网络电子计费系统
猜你喜欢

Send the injured baby for emergency medical treatment. Didi's driver ran five red lights in a row

自旋锁探秘

Write the simplest small program in C language Hello World

Horizontal visual error effect JS special effect code

AnimeSR:可学习的降质算子与新的真实世界动漫VSR数据集

流批一体在京东的探索与实践

送受伤婴儿紧急就医,滴滴司机连闯五个红灯

Mo Tianlun salon | Tsinghua qiaojialin: Apache iotdb, originated from Tsinghua, is building an open source ecological road

Redis (I) - data type

Add code block in word (Reprint)
随机推荐
Spin lock exploration
每日面试1题-如何防止CDN防护被绕过
[binary tree] preorder traversal to construct binary search tree
MSF后渗透总结
Radio and television 5g officially set sail, attracting attention on how to apply the golden band
自旋锁探秘
MIT science and Technology Review released the list of innovators under the age of 35 in 2022, including alphafold authors, etc
流批一体在京东的探索与实践
How can you choose to work in the county after graduation?
港科大&MSRA新研究:关于图像到图像转换,Finetuning is all you need
Implementation of graduation project management system based on SSM
基于SSH的网上商城设计
中基协:推荐使用电子合同
Lenovo's "dual platform" operation and maintenance solution helps to comprehensively improve the intelligent management ability of the intelligent medical industry
Horizontal visual error effect JS special effect code
基于SSM的新闻管理系统
AnimeSR:可学习的降质算子与新的真实世界动漫VSR数据集
Apache parsing vulnerability (cve-2017-15715)_ Vulnerability recurrence
广电5G正式启航,黄金频段将如何应用引关注
基于eNSP的校园网设计的仿真模拟