-
jbkhmm.. is there any utility that'd take an input file with ^Hs and the like and just render the final output line?
-
jbknot exactly stripping them as much as just saving the end result
-
jbke.g. a line 'foo^H^H^Hbar' would just result in 'bar'
-
jbkin the output
-
richloweul(1), but perhaps that only processes it '^H_'
-
nomadcat(1)
-
nomadI just created a file /tmp/foo with "foo^H^H^Hbar" and cat /tmp/foo printed bar.
-
nomadah, never mind. Script shows the control chars still there.
-
nomadjust the result I saw on the terminal was the final.
-
sommerfeldcol(1)
-
sommerfeldspecifically, col -b
-
jbkaha!
-
jbkthanks
-
jbki'm trying to track down a panic in ahci... it's prior to any dump devices being available, so i'm trying to log the kmdb session to save the output
-
sommerfeldit may do some additional processing you don't want but if the only odd control chars are backspace you should be good.
-
richlowejbk: I have, in the distant past, used ttyrec for that
-
richloweusually used to record nethack games, but...
-
jbkit's a VM, so I'm resorting to minicom to access the serial port exposed as a socket
-
richloweyeah, ttyrec has its own pty, and records input/output, like a tty-oriented script(1)
-
richloweso where mdb has paging, etc, etc, it can be your friend in a pinch
-
jclulowjbk: You might enjoy picocom
-
jclulowWhat I recall is that minicom was a visual mode thing, whereas picocom just attaches the serial port to your existing terminal without doing its own layout
-
richloweoh yes, that's a better solution
-
jclulowOh, also, if it's just a UNIX socket, sercons might help -- github.com/jclulow/vmware-sercons
-
jclulowIt does even less than picocom haha
-
danmcdI endorse sercons for VMware tty sockets.