Browse Prior Art Database

Ability to Grep for Text of a Certain Color

IP.com Disclosure Number: IPCOM000243675D
Publication Date: 2015-Oct-09
Document File: 1 page(s) / 74K

Publishing Venue

The IP.com Prior Art Database

Abstract

Creating the ability for a user to grep for text of a certain color, rather than just specific strings, in a command line prompt.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 73% of the total text.

Page 01 of 1

Ability to Grep for Text of a Certain Color

Sometimes text is color coded to symbolize the meaning of the text, with certain words having the same text color (e.g. "active" and "good" being in green, "error" and "bad" being in red). When you grep for text, you are only able to search for certain string patterns. There is currently no way to grep for any words that are a certain color. Disclosed is a method and system that would enable a user to grep for text meaning based on the text color.

Let's say you have text output that displays the status of several services. If the service is in a good state, the state shows up in green text. If the service is in a bad state, the state shows up in red text. You want to grep for all services in a bad state, but only know what some of those states are called. You can grep for "error\|stopped", but there may still be services in a bad state that you were not aware of (e.g. a "failed" state). Disclosed is a method and system that would enable a user to grep for any text that has a text color in the red range - therefore showing you all services in a bad state.

This could be implemented by adding another option to the grep command. For example, 'grep --find-color=COLOR' where COLOR can be red, orange, yellow, green, blue, purple, white, grey, black, or any HTML color codes (hexadecimal triplets, such as #93FFE8, if you know the exact color you are looking for). If you specify 'red,' it will find any text with a color in the r...