M
M
Maksim B2019-07-12 02:30:45
linux
Maksim B, 2019-07-12 02:30:45

How to highlight a keyword in Ubuntu terminal?

If grep filters the input stream, isn't there a command that simply highlights the kobcheva word in the terminal output?
psafx | colors some_proc

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2019-07-12
@Sundagy

Use regexp
grep -P "^|нужный текст"

S
sergey, 2019-07-12
kuzmin @sergueik

grep -P
and in order to change that in your program, there are many ways, for example.
5d27cdc0c19ec775735814.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question