Re: Blank lines not being squeezed

From: Chris F.A. Johnson (c.fa.johnson_at_rogers.com)
Date: 03/26/04


Date: 26 Mar 2004 04:18:06 GMT

On Fri, 26 Mar 2004 at 04:03 GMT, Fred Ma wrote:
>
> I was using various methods to turn a few man pages
> into compact text pages. In bash notation:
>
> man man | PAGER -s | col -bx >| TextFile.txt

man man | col -bx | tr -s '\n' >| TextFile.txt

-- 
    Chris F.A. Johnson                  http://cfaj.freeshell.org/shell
    ===================================================================
    My code (if any) in this post is copyright 2004, Chris F.A. Johnson
    and may be copied under the terms of the GNU General Public License


Relevant Pages

  • Re: redirect to start of file
    ... but this eliminates two external commands from the patch version ... ## COPYRIGHT 2007, Chris F.A. Johnson ... Released under Version 2 of the GNU General Public License ...
    (comp.os.linux.misc)
  • Re: Automagically setting the group when creating a file
    ... chmod g+s directory ... My code in this post is copyright 2003, Chris F.A. Johnson ... and may be copied under the terms of the GNU General Public License ...
    (comp.unix.questions)
  • Re: rename files
    ... My code in this post is copyright 2004, Chris F.A. Johnson ... and may be copied under the terms of the GNU General Public License ...
    (comp.unix.shell)
  • Re: bash
    ... printf "%s\n" A B C D E F G H I J K L M N O P Q R S T U V W X Y Z ... My code in this post is copyright 2003, Chris F.A. Johnson ... and may be copied under the terms of the GNU General Public License ...
    (comp.unix.shell)
  • Re: Fighting SPAM
    ... secure in the knowledge that he will not read ... My code in this post is copyright 2004, Chris F.A. Johnson ... and may be copied under the terms of the GNU General Public License ...
    (comp.os.linux.misc)