2 added 231 characters in body
source | link

You are probably looking for this:

sed -e 's/\(.*MAJOR.*\)/\o033[48;5;95;38;5;202m\1\o033[0m/'

although it can be simplified with

sed -e 's/.*MAJOR.*/\o033[48;5;95;38;5;202m&\o033[m/'

Notice change of 40 to 48 what means we want to change background color.

If you want background color as black:

sed -e 's/.*MAJOR.*/\o033[40;38;5;202m&\o033[m/'

and if background color is already black you don't need to change it at all:

sed -e 's/.*MAJOR.*/\o033[38;5;202m&\o033[m/'

You are probably looking for this:

sed -e 's/\(.*MAJOR.*\)/\o033[48;5;95;38;5;202m\1\o033[0m/'

although it can be simplified with

sed -e 's/.*MAJOR.*/\o033[48;5;95;38;5;202m&\o033[m/'

Notice change of 40 to 48 what means we want to change background color.

You are probably looking for this:

sed -e 's/\(.*MAJOR.*\)/\o033[48;5;95;38;5;202m\1\o033[0m/'

although it can be simplified with

sed -e 's/.*MAJOR.*/\o033[48;5;95;38;5;202m&\o033[m/'

Notice change of 40 to 48 what means we want to change background color.

If you want background color as black:

sed -e 's/.*MAJOR.*/\o033[40;38;5;202m&\o033[m/'

and if background color is already black you don't need to change it at all:

sed -e 's/.*MAJOR.*/\o033[38;5;202m&\o033[m/'
1
source | link

You are probably looking for this:

sed -e 's/\(.*MAJOR.*\)/\o033[48;5;95;38;5;202m\1\o033[0m/'

although it can be simplified with

sed -e 's/.*MAJOR.*/\o033[48;5;95;38;5;202m&\o033[m/'

Notice change of 40 to 48 what means we want to change background color.