I want to store a colored terminal output to a file (maybe a .rtf or whatever). In OSX I am able to manually copy it and paste it in a .rft file using Textedit, however I wanted to store it automatically using something like:
command &> somefile.rtf
Storing the output in a .txt preserves the color tags but they are useless since they can only be seen from the terminal (using cat).
Is there a way to do that?
I read a similiar question but it didn't solve the issue of storing the output in a file format that supports colors (and can be opened without a terminal).
aha
c program it says '(...) compiles and runs without problem on os x'command | ansi2html.sh > file.html
.