From owner-freebsd-questions@FreeBSD.ORG Tue Jun 12 08:22:02 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D51191065673 for ; Tue, 12 Jun 2012 08:22:02 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 92C5C8FC17 for ; Tue, 12 Jun 2012 08:22:02 +0000 (UTC) Received: from r56.edvax.de (port-92-195-32-177.dynamic.qsc.de [92.195.32.177]) by mx01.qsc.de (Postfix) with ESMTP id 2633F3D04F; Tue, 12 Jun 2012 10:22:00 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q5C8M0fn003341; Tue, 12 Jun 2012 10:22:00 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Tue, 12 Jun 2012 10:22:00 +0200 From: Polytropon To: i pwn Message-Id: <20120612102200.f5d0b981.freebsd@edvax.de> In-Reply-To: <7F5F7609-DB36-4E37-9196-92B797732C1D@gmail.com> References: <4C067C55-8320-4D12-A312-F8E2CC699B01@gmail.com> <4FD6A057.2070101@gmail.com> <20120612054431.b630e37a.freebsd@edvax.de> <7F5F7609-DB36-4E37-9196-92B797732C1D@gmail.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: text format X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2012 08:22:02 -0000 On Tue, 12 Jun 2012 09:06:07 +0100, i pwn wrote: > on groff i've used this cmd to format the text > groff -Tascii < normal.txt | sed 's/^/ /'$1 > formatted.txt > on nroff what would be the cmd? Depending on your input data, I'd say the same command: groff -Tascii < normal.txt > formatted.txt. But you need to test this yourself with your input text format. See "man nroff" for details. For using roff macros, "man 7 mdoc" has a nice summary. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...