From owner-freebsd-questions@FreeBSD.ORG Mon Sep 27 19:29:05 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 57E7416A4CE for ; Mon, 27 Sep 2004 19:29:05 +0000 (GMT) Received: from sage.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id B132E43D2F for ; Mon, 27 Sep 2004 19:29:04 +0000 (GMT) (envelope-from kline@tao.thought.org) Received: from thought.org (tao [10.0.0.247]) by sage.thought.org (8.12.10/8.12.10) with ESMTP id i8RJSih0012251 for ; Mon, 27 Sep 2004 12:28:45 -0700 (PDT) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (localhost [127.0.0.1]) by thought.org (8.12.11/8.12.11) with ESMTP id i8RJT0hP082338 for ; Mon, 27 Sep 2004 12:29:01 -0700 (PDT) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.12.11/8.12.11/Submit) id i8RJT03p082337 for freebsd-questions@FreeBSD.ORG; Mon, 27 Sep 2004 12:29:00 -0700 (PDT) (envelope-from kline) Date: Mon, 27 Sep 2004 12:28:59 -0700 From: Gary Kline To: FreeBSD Mailing List Message-ID: <20040927192859.GA82254@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing 18 years of service to the Unix community User-Agent: Mutt/1.5.6i Subject: regex replacement wizard advice needed X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2004 19:29:05 -0000 Hi Gang, I have a document with numbered paragraphs, the numbers to the far left of each paragraph. Is there a perl s/NNN/NNN/
/g means I can use from the CL or as a script to make this doc more easy (for me) to read. The document is formatted like this: 1 Paragraph1. 2 Paragraph2. ... 29 Paragraph29. ... 747 Paragraph747. I would like it to be like this: 1
Paragraph1. 2
Paragraph2. ... 29
Paragraph29. ... 747
Paragraph747. I've used perls subsitiution as a simple command line script dozens of times, but this one (yes, I'm using HTML) is a bit over my head. Can anybody clue me in? thanks in advance, gary -- Gary Kline kline@thought.org www.thought.org Public service Unix