MESSAGE
DATE | 2011-12-14 |
FROM | Ruben Safir
|
SUBJECT | Re: [NYLXS - HANGOUT] A simple perl script
|
From owner-hangout-outgoing-at-mrbrklyn.com Wed Dec 14 22:59:20 2011 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: by www2.mrbrklyn.com (Postfix) id CB191FFAD8; Wed, 14 Dec 2011 22:59:19 -0500 (EST) Delivered-To: hangout-outgoing-at-www2.mrbrklyn.com Received: by www2.mrbrklyn.com (Postfix, from userid 28) id B9C0D100B42; Wed, 14 Dec 2011 22:59:19 -0500 (EST) Delivered-To: hangout-at-mrbrklyn.com Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by www2.mrbrklyn.com (Postfix) with ESMTP id 639B1FFAD8 for ; Wed, 14 Dec 2011 22:59:19 -0500 (EST) Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mailbackend.panix.com (Postfix) with ESMTP id 79D48283AB for ; Wed, 14 Dec 2011 23:00:59 -0500 (EST) Received: by panix2.panix.com (Postfix, from userid 20529) id 7436C33C93; Wed, 14 Dec 2011 23:00:59 -0500 (EST) Date: Wed, 14 Dec 2011 23:00:59 -0500 From: Ruben Safir To: hangout-at-mrbrklyn.com Subject: Re: [NYLXS - HANGOUT] A simple perl script Message-ID: <20111215040059.GA1063-at-panix.com> References: <20111214070833.GA11058-at-panix.com> <1323908859.93530.YahooMailNeo-at-web38006.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1323908859.93530.YahooMailNeo-at-web38006.mail.mud.yahoo.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: owner-hangout-at-mrbrklyn.com Precedence: bulk Reply-To: hangout-at-mrbrklyn.com
On Wed, Dec 14, 2011 at 04:27:39PM -0800, Elfen Magix wrote: > I need a simple thing that goes through a file to find "Chapter [and a number]". Then it must increment that number by 1 and resave the file without altering nothing else. > > I know I've seen this, and even wrote one years ago myself, but I cant for the life of me remember how! > > Thanks.
One last hint
link OLDFILE,NEWFILE Creates a new filename linked to the old filename. Returns true for success, false otherwise. /tmp/DAEVqqR0O6 lines 1-3/3 (END)
|
|