is there any way to convert bash output to html ? for example if I had some colorized output in bash ( something like htop ), how can I convert it to html tags ... ( something like this: <p style="color: red">some text</p>
)
There's ansifilter
plus some tools like highlight
will produce colorized html from plain text such as source files.
Both available here.
This is exactly what I want ... ansifilter -i file -H -o file.html