From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Krlbm-0007Ht-Ns for garchives@archives.gentoo.org; Mon, 20 Oct 2008 03:39:06 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C9B9AE031B; Mon, 20 Oct 2008 03:39:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 69D7DE031B for ; Mon, 20 Oct 2008 03:39:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 0BBBB647DC for ; Mon, 20 Oct 2008 03:39:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -2.599 X-Spam-Level: X-Spam-Status: No, score=-2.599 required=5.5 tests=[BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f9dHT8NIcLlR for ; Mon, 20 Oct 2008 03:38:57 +0000 (UTC) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 68119644B4 for ; Mon, 20 Oct 2008 03:38:57 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Krlbb-00056j-3D for gentoo-user@gentoo.org; Sun, 19 Oct 2008 20:38:55 -0700 Message-ID: <20062130.post@talk.nabble.com> Date: Sun, 19 Oct 2008 20:38:55 -0700 (PDT) From: djanderson To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] how to word-wrap using a pipe? Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: douglasjanderson@gmail.com X-Archives-Salt: a26f7899-8d9b-4feb-b4b7-1ff2cd33c773 X-Archives-Hash: 0916003d3820ebba455a21f8ee72dc90 Zhang Weiwu wrote: > > Hello. How can I line-wrap a text file that was not wrapped before (e.g. > like text file created on Microsoft Windows's notepad, the software does > softwrap by default, thus the file created using it often have very long > text lines) by using command pipe? > I think you'll find what you're looking for in the 'fmt' standard unix command. `man fmt', it's part of coreutils. -Doug -- View this message in context: http://www.nabble.com/how-to-word-wrap-using-a-pipe--tp20061899p20062130.html Sent from the gentoo-user mailing list archive at Nabble.com.