Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17788

anyone know of a nice utility to parse the output of "script"?

$
0
0

So I'm trying to follow some reasonably detailed instructions from a one to one I had with one of our head devs. He dumped his whole terminal session into a file using script.

Now, this is great - I've got a log of everything. But because he often deleted and edited commands on the fly I get things like this:

[7m[MACHINE401][27m /tmp/userName/aDir $ svn ls A/Dir/Pa[K[K[P[P[1@u[1@p [1@ [1@-[1@N[62GPath/[K 

which I'm sure should actually read:

[7m[MACHINE401][27m /tmp/userName/aDir $ svn ls A/Dir/Path 

Does anyone know of a utility (preferably free on *nix/osx) which would correctly parse such output into human-readable form? (And by that I mean correctly taking into account of "[K"==delete/backspace etc.)

submitted by szczypka
[link] [7 comments]

Viewing all articles
Browse latest Browse all 17788

Trending Articles