Coloring matched portions with GNU grep, sed and awk

You might already know how to use the --color option to highlight matched portions with GNU grep . In this post, you&#x27;ll see how to use ANSI escape sequences to format matched portions with GNU sed and GNU awk . GNU grep 🔗 Consider this sample input file: $ cat fruits.txt banana mango cherry pineapple grape fig apple dragonfruit papaya watermelon cashew tomato orange almond lime grapefruit…