Generally quite a lot of us would have used the script command. This generates the logs for the session. But the problem with the logs is that it contains a lot of un-readable characters. These characters are mostly from the color codes, and as such can be removed very easily with a single command:
cat typescript | perl -pe 's/e([^]|[.*.*?[a-zA-Z]|].*?a)//g' | col -b > typescript-processed
This assumes the input log file is named as typescript and the output is kept as typescript-processed. You can change the names as required.
- 2011/01/27 fork a new process in perl
- 2013/07/12 create text tables from delimited files.
- 2013/05/15 Vim – Why and where am I getting these errors from?
- 2012/03/26 pigz -parallel gzip
- 2012/03/02 15 Linux Bash History Expansion Examples You Should Know