sed 's/[^[:space:][:print:]]//g' or sg similar might do the trick
i once wrote a very small C program (perl was too slow) to check a file for any non-printable bytes; it would probably be trivial to write a version that would output printable bytes instead On Fri, Jan 30, 2009 at 5:52 AM, Jae Norment <jnorm...@q2software.com>wrote: > I use screen to log sessions where I patch Debian servers. Screen > captures ANSI control codes (like positioning and color changes), which > is probably appropriate, however, I want a version of the logs without > those codes so that I can open it in a text editor. I've been told that > a little perl could help, been directed to 'script', both of which don't > seem to do the trick that I want. For the perl solution, I need to know > too much about the ANSI codes that I want to replace. Script just > dumps... there doesn't seem to be a good way to capture without the > codes... > > Screen is a widely used application, and my use to generate logs of my > sessions has got to be a fairly popular function of screen... so what is > everyone else using to make the logs human readable? ( Ideally, I'd > like something that will reformat the log either to a file or to a pipe. > ) > > Thanks! > > --J. > > > _______________________________________________ > screen-users mailing list > screen-users@gnu.org > http://lists.gnu.org/mailman/listinfo/screen-users > -- Aaron Davies aaron.dav...@gmail.com
_______________________________________________ screen-users mailing list screen-users@gnu.org http://lists.gnu.org/mailman/listinfo/screen-users