2

Is coloring an output possible using cat or similar command?

Let say I have some php or bash script or other. I don't need to edit the file, just to view the source. So cat filename does the job.

But, is it possible to colorize an output making it easier to read, like you can do with vim syntax:on mode?

Rui F Ribeiro
  • 55,929
  • 26
  • 146
  • 227
fugitive
  • 1,543
  • 19
  • 33

1 Answers1

3

Yes, grc will achive what you need. github link

enter image description here

steve
  • 21,582
  • 5
  • 48
  • 75
  • Looking good @steve. Does the script colorize the output of the actual scripts as well? (sorry, haven't tested it yet) – fugitive Jan 30 '17 at 22:51