Score:0

using /usr/bin/script to record sessions, but readable .txt

bf flag

How can I get the /usr/bin/script files to be "readable" .txt ?

For example I'm recording sessions like:

script "/path/`date "+%y%m%d-%H%M%S-term-session.txt"`"

When I "more" the files they come back as "binary" and have "extra" characters that make them less user friendly.

Thanks, Greg

Score:0
bf flag

I found this

cat $SCRIPT_LOG_FILE | perl -pe 's/\e([^\[\]]|\[.*?[a-zA-Z]|\].*?\a)//g' | col -b > $txtfile

and it seems to work.

Credit was: https://answers.launchpad.net/ubuntu/+source/gnome-terminal/+question/7131

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.