Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!icdoc!syma!leilabd From: leilabd@syma.sussex.ac.uk (Leila Burrell-Davis) Newsgroups: comp.unix.questions Subject: Re: unwanted control characters in downloads Message-ID: <4835@syma.sussex.ac.uk> Date: 11 Apr 91 18:47:58 GMT References: <1991Apr9.195318.18030@rodan.acs.syr.edu> <1991Apr10.165508.20237@grasp1.univ-lyon1.fr> Organization: Computing Service, University of Sussex, UK Lines: 28 wolf@grasp1.univ-lyon1.fr (Christophe Wolfhugel) writes: > In article <1991Apr9.195318.18030@rodan.acs.syr.edu> ldstern@rodan.acs.syr.edu (Larry Stern) writes: > >To all: when I download certain files from a Sun/4 (running SunOS 4.1), such > >as a 'man' file, my files contain all the _^H and other sequences used in > >that file. Is there an easy way to eliminate this? > > One solution could be to use vi to replace these characters: > > vi the_file > :1,$s/.^H//g We have a sed filter which will eliminate this kind of backspacing. You need to replace by the backspace character, ASCII 8, then put the script in a file, make it executable and try: no_ul inputfile > outputfile #-----start of script------ # no_ul - remove underline backspace char underlining escape sequences sed \ -e '/_/s///g' \ $* #-----end of script------ -- Leila Burrell-Davis, Computing Service, University of Sussex, Brighton, UK Tel: +44 273 678390 Fax: +44 273 678470 Email: leilabd@syma.sussex.ac.uk (JANET: leilabd@uk.ac.sussex.syma)