In linux the grep output gets highlighted in red. Is there any special command to achieve the same using findstr in Windows cmd?
I am trying this command in cmd -
adb logcat -v time | findstr /a:color [4] \"NETWORK"
but in return it says specify only /L or /R.
(While Googling I learnt that /a is for color formatting and 4 stands for Red color)
I need to search for "NETWORK" calls my Android app is making. To view the logs better, it would be helpful if the output of findstr gets colorized.
You can use the color attribute as follows findstr /s /n /a:e /i "<your search string>" <file paths>
. Note that /a:<color code>
is the option you are looking for. Here's an example:
Here are the list of colors available. I am using 'e' or 'E' or 'Light Yellow':
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With