How to highlight a word without excluding text
Asked by
komputes
grep has this cool feature that highlights a work that you are looking for. grep also excludes text other than the pattern you are looking for.
I would like to highlight a word without excluding text and was wondering if this is possible.
The command:
sudo apt-get -y update; sudo apt-get -y upgrade; sudo apt-get -y dist-upgrade
What I would imagine as an alternative (note: just an example, this command does not exist/work):
sudo apt-get -y update; sudo apt-get -y upgrade; sudo apt-get -y dist-upgrade | grep --dont-exclude --color-text Removing
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu grep Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Ralph Corderoy
- Solved:
- Last query:
- Last reply:
To post a message you must log in.