Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jan 2001 07:55:37 -0500 (EST)
From:      Dru <genisis@istar.ca>
To:        Ken Bolingbroke <hacker@bolingbroke.com>
Cc:        cjclark@alum.mit.edu, questions@FreeBSD.ORG
Subject:   Re: Command to Make "Printable" Text
Message-ID:  <Pine.BSF.4.21.0101190753480.2934-100000@x1-6-00-50-ba-de-36-33.kico1.on.home.com>
In-Reply-To: <Pine.BSF.4.21.0101190116500.23373-100000@fremont.bolingbroke.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Fri, 19 Jan 2001, Ken Bolingbroke wrote:

And for a good explanation of why, read:

http://www.oreillynet.com/pub/a/bsd/2000/10/11/FreeBSD_Basics.html?page=2

Cheers,

Dru


> 
> The command you're looking for is 'col'.  See 'man col'.
> 
> Ken
> 
> On Fri, 19 Jan 2001, Crist J. Clark wrote:
> 
> > My mind is going. I know I figured out how to do this in a clever way
> > once before, but it is not coming to me now.
> > 
> > I have a file that was, say, generated by using script(1). There is
> > user interaction recorded and knowing users, there are things like
> > backspaces, arrow keys, tabs for auto-completetion, etc. in the
> > recorded input. How do I convert this file into one that just contains
> > the characters that show up when the file is printed to the screen?
> > 
> > That is, if I do a,
> > 
> >   $ cat script.txt
> >   This is clean output.
> > 
> > It looks good, but if I were to see what is really there, it looks
> > like,
> > 
> >   $ cat -v script.txt
> >   This is not^H^[[K^H^[[K^H^[[Kclean output.^M^M
> > 
> > However, I want to create a file that just contains what "looks like"
> > the final output in the first example. If I do,
> > 
> >   $ cat script.txt > newscript.txt
> > 
> > All of the non-printed characters go. I know there is a command that
> > will do this, 'cause I have done it, but can't remember.
> > 
> > Oh, and anyone thinking of saying something about cut-n-paste... Don't
> > even.
> > -- 
> > Crist J. Clark                           cjclark@alum.mit.edu
> > 
> > 
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message
> > 
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 
> 
> 
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0101190753480.2934-100000>