[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: script command question



On Tue 08/31/99 09:46AM, Michael Stenner wrote:
> I use ls with color and also use a cool prompt setting in bash (see
> below) which does REALLY nasty things to script.  If you find a clever
> way to keep the colors and fix the script output, I'd be happy to hear
> it!

I'm not sure what kind of stuff that gets put in your files, but a
little research turned up the tr command.

To rid my file of ^Gs I did the following:

  tr -d '\007' < output.out > output.new

and my ^Gs were gone! I need to try it with a few others. Pretty
cool and I did have to write anything. The great thing that I find
about UNIX in general, is that if I want to do it, someone else has
already written something to get it done.  
-- 
                 (                       __   _
Mark Wagnon       )     Debian GNU/ -o) / /  (_)__  __ ____  __
Chula Vista, CA  (                  /\\/ /__/ / _ \/ // /\ \/ /
mwagnon1@home.com ) www.debian.org _\_v____/_/_//_/\_,_/ /_/\_\


Reply to: