当前位置:网站首页>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边栏推荐
- How to write a technical proposal
- 5G商用三年,未来创新何去何从?
- Babbitt | yuanuniverse daily must read: minors ask for a refund after a reward. The virtual anchor says he is a big wrongdoer. How do you think of this regulatory loophole
- 【剑指Offer】剑指 Offer 53 - II. 0~n-1中缺失的数字
- [Architecture] 1366- how to draw an excellent architecture diagram
- 4 years of working experience, and you can't tell the five communication modes between multithreads. Can you believe it?
- Share 5 commonly used feature selection methods, and you must see them when you get started with machine learning!!!
- Taishan Office Technology Lecture: how to align and draw words of different sizes on the same line
- China Infrastructure Development Association: electronic contract is recommended
- DeFi借贷协议机制对比:Euler、Compound、Aave和Rari Capital
猜你喜欢

MySQL reports that the column timestamp field cannot be null

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

NFT: 开启加密艺术时代的无限可能

如何写一个技术方案

Flutter custom component

Redis (IV) - delete policy

Building a basic buildreoot file system

IEEE TBD SCI影响因子提升至4.271,位列Q1区!

Advanced Mathematics (Seventh Edition) Tongji University General exercises one person solution

Cloud practice of key business migration of Internet of things by well-known Internet housing rental service companies
随机推荐
分享 5 大常用的特征选择方法,机器学习入门必看!!!
Solution: STM32 failed to parse data using cjson
Daily interview 1 question - how to prevent CDN protection from being bypassed
元宇宙带来的游戏变革会是怎样的?
Radio and television 5g officially set sail, attracting attention on how to apply the golden band
Canvas cloud shape animation
Hyper-v:在虚拟网络中启用 SR-IOV
[sword finger offer] sword finger offer 53 - ii Missing numbers from 0 to n-1
[BJDCTF2020]The mystery of ip|[CISCN2019 华东南赛区]Web11|SSTI注入
Building a basic buildreoot file system
Redis (III) - transaction
Key to understanding the trend of spot Silver
Fragmentary knowledge points of MySQL
New research of HKUST & MsrA: about image to image conversion, finishing is all you need
Redis (IV) - delete policy
. Net ORM framework hisql practice - Chapter 1 - integrating hisql
Network: principle and practice of server network card group technology
.NET ORM框架HiSql实战-第一章-集成HiSql
Implementation of graduation project management system based on SSM
5g has been in business for three years. Where will innovation go in the future?