5
2
I like to use the 'script' command to record console sessions. The problem is that the 'typescript' file which is created contains control chars (when using arrows or the delete key).
Apart from editing the file manually, is there a way to generate a file which contains what we see in the file when we cat
or more
it?
Any attempt with cat
, more
, less -R
, tr
, pr
ends with a file that displays well, but still contains the control chars.
Sorry, I don't want to display the file, but generate another cleaned file. Redirecting with > doesn't work either with less -r (or more or cat). – Gra – 2010-09-22T14:45:43.193
If you use
cat
with the same terminal it will interpret the control chars; I can't find anything better than select-copy-paste right now. – cYrus – 2010-09-23T14:15:54.340