From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 02RJRBjf018721 for ; Fri, 27 Mar 2020 15:27:11 -0400 Received: by smtp.corp.redhat.com (Postfix) id E28C32033955; Fri, 27 Mar 2020 19:27:10 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast04.extmail.prod.ext.rdu2.redhat.com [10.11.55.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DE9232033957 for ; Fri, 27 Mar 2020 19:27:08 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B5813101A55D for ; Fri, 27 Mar 2020 19:27:08 +0000 (UTC) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=dkim.mimecast.com; s=201903; t=1585337228; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=s6ztqoNwQOjJQc7RT6VZzUU0EPypxo6suLoey9wTsJY=; b=U30So9y6ElWPoggo1/V5UY5Q9zIcjTCwG62yGs90+lcDITIanwaKHp1VpNDmQeds6+DK9u yD2fF79E1540HzRF/+Ema+sgZ86WfBgoLQUfVad5MfA/OUdjLULCqbmi2Qq3If9M7SbzPv 6rhwThKp9sQPyDAhaCsEt55SfL5YNVLnStrAIvzbU8eCHYqouQhFEFDBD3pPm7OD91mNKm d8lwuS29MQY6SBoGWcUENsDxBVOsBeDqu0NlGvanJfDkpxgp2rWxh1ntwIWLhYIIY3j4lQ 2qESzoqoZMgCaO8RGIMTFvHcpzhBXsfPjL4wewXophUtZfxkSFotpkiTCIfYpA== ARC-Seal: i=1; s=201903; d=dkim.mimecast.com; t=1585337228; a=rsa-sha256; cv=none; b=IsKuk2TVeV7X+1TvoJj4hpPpAuXslfMX5CLCEcO0PgJY23o8xqyP8WDpqnyugxdEYoP7y3 YFT0C2uPG4W668hCNhafyARzcS88HHABu4JJQwnqNGYjMazl1j2DwzK2ns8JhCxTN6jBJF 5zzU1I00o3RpyX6gm5ulUfvdVc9HR0muWiAVgeMlfKMQDOnOJg2Tu60WPWbIfnQIO5acF6 QdF0L8pDiKr2mq8N7OAwYMyjNjofIhmG5ASzC5fUmMDfsx5Eds5gW9zxIiiZ4wioLu/W/h mZD5JVFVM2/vHfncuOPQFDKB3Fy4xmPYpw6istVPvdvAOJKEU2Tk66dGAUtb+A== ARC-Authentication-Results: i=1; relay.mimecast.com; dkim=none (invalid DKIM record) header.d=thechases.com header.s=default header.b=HJjWTa49; dmarc=none; spf=pass (relay.mimecast.com: domain of blinux.list@thechases.com designates 74.220.194.128 as permitted sender) smtp.mailfrom=blinux.list@thechases.com Received: from gateway7.unifiedlayer.com (gateway7.unifiedlayer.com [74.220.194.128]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-18-NotgrR5bOvaN7FLj9G04cA-1; Fri, 27 Mar 2020 15:27:05 -0400 X-MC-Unique: NotgrR5bOvaN7FLj9G04cA-1 Received: from cm1.websitewelcome.com (unknown [192.185.0.102]) by gateway7.unifiedlayer.com (Postfix) with ESMTP id 67D6020115993 for ; Fri, 27 Mar 2020 14:27:04 -0500 (CDT) Received: from uscentral455.accountservergroup.com ([174.136.13.174]) by cmsmtp with ESMTP id HudEjD3bhwLnQHudEjninY; Fri, 27 Mar 2020 14:27:04 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thechases.com; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:To:From:Date:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=s6ztqoNwQOjJQc7RT6VZzUU0EPypxo6suLoey9wTsJY=; b=HJjWTa49MdyeZ45Ve4ltryNREy v9kN8aEsMJ1V6TRP5rLZra9w3CpnP8tUDBo+flhf2A0vkgvyNPtLx6vAuUEvcQMt5A1Vc+voo9A7z C9HYcqeps/F9JXnNHaANpLcB0g5ET+27lSvuUt7rRr8Kc7CtleNgxmIAC9RTWjq89TXHtKfo818Ie w7ycWMqywQZZkHQlaLY8vGuKCmmep/ZAPH2ymqCmLsCWcp4QPbKQj1HE+fOPsbtxCg/hzUzAmhbez CgcoJ85lHmiTdFFQoLv1pm7yUdBJwz2fWfTd8DVKbX8uA7mFjnvs6K+Jt5fngjJWhQ85eiWcCBDNo /r63l+/A==; Received: from 172-0-250-193.lightspeed.rcsntx.sbcglobal.net ([172.0.250.193]:47639 helo=bigbox.attlocal.net) by uscentral455.accountservergroup.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1jHudE-000pdS-25 for blinux-list@redhat.com; Fri, 27 Mar 2020 14:27:04 -0500 Date: Fri, 27 Mar 2020 14:27:02 -0500 To: Linux for blind general discussion Subject: Re: Convert unwrapped paragraphs to hard wrapped paragraphs when there's no blank lines. Message-ID: <20200327142702.35209f95@bigbox.attlocal.net> In-Reply-To: References: MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - uscentral455.accountservergroup.com X-AntiAbuse: Original Domain - redhat.com X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - thechases.com X-BWhitelist: no X-Source-IP: 172.0.250.193 X-Source-L: No X-Exim-ID: 1jHudE-000pdS-25 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 172-0-250-193.lightspeed.rcsntx.sbcglobal.net (bigbox.attlocal.net) [172.0.250.193]:47639 X-Source-Auth: tim@thechases.com X-Email-Count: 1 X-Source-Cap: dGhlY2hhc2U7dGhlY2hhc2U7dXNjZW50cmFsNDU1LmFjY291bnRzZXJ2ZXJncm91cC5jb20= X-Local-Domain: yes Authentication-Results: relay.mimecast.com; dkim=none (invalid DKIM record) header.d=thechases.com header.s=default header.b=HJjWTa49; dmarc=none; spf=pass (relay.mimecast.com: domain of blinux.list@thechases.com designates 74.220.194.128 as permitted sender) smtp.mailfrom=blinux.list@thechases.com X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-loop: blinux-list@redhat.com From: Linux for blind general discussion X-BeenThere: blinux-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk Reply-To: blinux-list@redhat.com List-Id: Linux for blind general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2020 19:27:11 -0000 On March 27, 2020, Linux for blind general discussion wrote: > does anyone know a way to automate inserting blank lines before > and after each line in a file that's too long to fit on the screen > all at once and then hard wrap those long lines? Well, since adding a blank line after each line-break puts a blank line before the next line, you (should?) only need to add newlines after each line which can easily be done with sed: $ sed G input_file.txt > output_file_with_spaces.txt If you want to format the lines at the same time, you can do that with "fmt" $ sed G input.txt | fmt > formatted_output_with_spaces.txt By default, fmt formats to 72 characters wide but you can adjust that using fmt -80 Hope this helps, -tim