Linux Commands#Process Management
# script -h Usage: script [options] [file] -f, --flush run flush after each write -a, --append append the output -q, --quiet be quiet
$ cat LOSG | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})*)?m//g" | col > log.txt
$ script -afq /tmp/test.log
LOGDIR=/var/log/script script -afq ${LOGDIR}/$(whoami)_$(date +%Y%m%d_%H%M%S).log