Just a tip on how to remove control characters from terminal logs (i.e. generated with the script [1] command).
The ansi2txt program is required (from the colorized-logs package [2]).
You can use the following command [3] where log.txt is the log generated by the script command (or similar commands):
Code: Select all
cat log.txt | ansi2txt | col -b > log-cleared.txt
--
[1] SCRIPT(1)
[2] colorized-logs
[3] Removing control chars (including console codes / colours) from script output