Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!mips!pacbell.com!att!linac!mp.cs.niu.edu!rickert From: rickert@mp.cs.niu.edu (Neil Rickert) Newsgroups: comp.unix.questions Subject: Re: printing out manual pages Keywords: man Message-ID: <1991Apr29.133357.14019@mp.cs.niu.edu> Date: 29 Apr 91 13:33:57 GMT References: <1991Apr28.222052.19789@agate.berkeley.edu> <1991Apr28.232157.24943@agate.berkeley.edu> <16958@chaph.usc.edu> Organization: Northern Illinois University Lines: 20 In article <16958@chaph.usc.edu> jeenglis@alcor.usc.edu (Joe English) writes: >c60b-1eq@e260-1g.berkeley.edu (Noam Mendelson) writes: >>In article <1991Apr28.222052.19789@agate.berkeley.edu> raymond@ursa.berkeley.edu (Raymond Yee) writes: >>>How do I print out output from the 'man' program or store 'man' output >>>in a file without having all the extraneous control characters? > >man foo | sed -e 's/_^H//g' -e 's/^[.//g' I usually just use: man foo | ul -tdumb > file If you have 'ul', and if the 'dumb' terminal type is defined in your termcap or equivalent database as a totally dumb terminal, that should format it without fancy control characters. -- =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= Neil W. Rickert, Computer Science Northern Illinois Univ. DeKalb, IL 60115 +1-815-753-6940