Artificial intelligent assistant

command line tool to reserve code high light in output file? For example, when using ack to search code in source files, the output is high lighted. But if you pipe the output into a local file, you lose the code high light. Do we have a command line tool to reserve it? To understand what I mean: $ git clone $ cd jaspy/ $ ack func ./* # you see the high light for each match $ ack func ./* > output.txt $ cat output.txt # you don't see the high light

`ack` does something smiliar to `grep`. When it puts it text to a terminal, it will spit the results out in color. If the output is redirected to a file, the matches do not get colorized.

You can override these heuristics with the options `--color` and `--nocolor`.

Check `man 1 ack` for more details.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 35d573ee24b303285281b8bcaca05e17