owenthereal / ccat

Colorizing `cat`
https://github.com/owenthereal/ccat
MIT License
3.16k stars 118 forks source link

Pipe output to some other command(s) before colorizing #69

Closed resolritter closed 6 years ago

resolritter commented 6 years ago

Is it possible to pipe the file output's to some other command before colorizing?

E.g. ccat file --pipe-to="grep 'pattern'"

EDIT: I found out know it's possible to do it like this:

cmd file | [commands] | ccat

Reading from stdin instead, so I guess it solves it for me.