I am using script-command to save the output of terminal to file.
but, it gives some extra characters like square-like characters and other text encrypted characters.
man script command tells, by using -q flag/option, it gives quite an output, without writing start and done messages to standard output, but it won't remove extra characters.
how can I get following:
1) make output file exactly same as of terminal output, removing extra characters.
2) In generated file, due to plain text-without color(unlike terminal), I can't figure-out directly input commands, because output and command I entered appears of same font,
can I make command as bold or easily recognizable than rest output?
]0;is appearing beforeterminals username. screenshot here https://imgur.com/a/MWPpBLb – GD- Ganesh Deshmukh Aug 11 '18 at 08:25TERM=dump scriptto runscriptit shouldn't appears anymore... yo remove]0;you can usesed 's/^]0;//' outputit should do the job. – Ravexina Aug 11 '18 at 08:37sed 's/^]0;//' filenamedidn't work. I also triedsed 's/^]0;//g'. I didn't usedTERM=dump scriptas I am appending my output to previously created file, and I am usingscript command. – GD- Ganesh Deshmukh Aug 11 '18 at 08:53TERM=dump script -ato append... – Ravexina Aug 11 '18 at 09:02