Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Replace grep command with grep -n --colour?
is there anything similar for rgrep auto color?
add this line to your .bashrc in your home directory
alias rgrep="grep -n --colour"
Just execute the following lines and modify one line as describe bellow
mkdir -p ~/bin
chmod +x rgrep
Edit it and modify the line
To this version:
Required, but never shown