3

I am looking for a command which would color a matching string in text. I.e. I am looking for functionality similar to what grep does, but I want to see the complete text not only the matching lines

Can somebody please advise whether such tool exists, or how I could best achieve this ?

Martin Vegter
  • 358
  • 75
  • 236
  • 411
  • 1
    Are you looking for this: http://unix.stackexchange.com/questions/366/convince-grep-to-output-all-lines-not-just-those-with-matches – Vombat Dec 01 '13 at 17:18

1 Answers1

3

Use ack:

ack --passthru something /some/file

The result will look like this: enter image description here

Elias Probst
  • 1,053