X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Message-ID: <3C190155.380CA4CE@yahoo.com> From: CBFalconer Organization: Ched Research X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: col filter References: <9vahtk$bvg$1 AT netnews DOT upenn DOT edu> <3C18D01E DOT AB8024D8 AT yahoo DOT com> <9vaobg$hld$1 AT netnews DOT upenn DOT edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 68 Date: Fri, 14 Dec 2001 02:24:22 GMT NNTP-Posting-Host: 12.90.176.145 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc06-news.ops.worldnet.att.net 1008296662 12.90.176.145 (Fri, 14 Dec 2001 02:24:22 GMT) NNTP-Posting-Date: Fri, 14 Dec 2001 02:24:22 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com PAVOL JUHAS wrote: > > CBFalconer (cbfalconer AT yahoo DOT com) wrote: > > PAVOL JUHAS wrote: > > > > > > I did my homework on GOOGLE, but I could not find it: > > > Is there a col utility - reverse line-feeds filter for DJGPP? > > > What are you talking about? > > AFAIK, col is available on *IX/Linux systems, col -b is useful for > filtering the output of man to get a plain text (without C-H characters). > > man col: > ----------------------------------------------------------------- > NAME > col - reverse line-feeds filter > > SYNOPSIS > col [ -bfpx ] > > DESCRIPTION > The col utility reads from the standard input and writes to > the standard output. It performs the line overlays implied > by reverse line-feeds, and by forward and reverse half- > line-feeds. Unless -x is used, all blank characters in the > input will be converted to tab characters wherever possible. > col is particularly useful for filtering multi-column output > made with the .rt command of nroff(1) and output resulting > from use of the tbl(1) preprocessor. Aha. Much the same purpose as my stripovr, last revised in '98 to handle those escape sequences in man listings. c:\dnld\scratch>stripovr STRIPOVR copyright (c) 1998 by C.B. Falconer. Ver 1.4 usage: STRIPOVR [/1e] outfile Removes all overprinting lines, i.e. lines that end in a cr without a following lf and ch ch sequences (uses last ch). and ANSI escape sequences (ESC[...ch) ch alphabetic The LAST line in an overprinting group is retained. The optional /1 parameter causes the FIRST line in an overprinting group to be retained, while the e (or E) modifier causes ANSI escape sequences to be stripped. The / may be replaced by a - in the options Input lines may not exceed 255 chars. Omitting " So the answer to the OP's question is 'yes', since stripovr runs under DOS. Send me an email and I can attach it in a reply. It is a monstrous 10k bytes. -- Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT XXXXworldnet DOT att DOT net) Available for consulting/temporary embedded and systems. (Remove "XXXX" from reply address. yahoo works unmodified) mailto:uce AT ftc DOT gov (for spambots to harvest)