Date: Sun, 24 Nov 2002 00:25:30 +1100 From: Edwin Groothuis <edwin@mavetju.org> To: Roman Shterenzon <roman@xpert.com> Cc: ports@freebsd.org Subject: Re: sed-in-place vs perl-in-place Message-ID: <20021123132530.GK50581@k7.mavetju> In-Reply-To: <20021123151528.H79952-100000@alchemy.oven.org> References: <20021123151528.H79952-100000@alchemy.oven.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Nov 23, 2002 at 03:18:47PM +0200, Roman Shterenzon wrote: > I'm working on Monkey's Audio (lossless audio compression) port. > The source is for windows, thus it has \r (carriage return) all over it. > The simplest thing to do is ${PERL5} -pi -e 's/\r//g' , but since it's > deprecated, one should use sed. > I tried several ways of removing \r's with sed, but failed. > Could someone enlighten me ? From a previous post: ====================== Date: Tue, 5 Nov 2002 11:32:10 +1100 From: Edwin Groothuis <edwin@mavetju.org> To: ports@freebsd.org Subject: funny REINPLACE_CMD failure for \r Greetings, It seems that REINPLACE_CMD doesn't know how to handle \r's in the expression, "-e 's!\r!!'" fails all the time for me (no matter how much \'s I add to it :-). Right now I just replace these by "${TR} -d '\015' < file > file.new; {$MV} file.new file" but I was wondering if somebody has a better solution for it. ====================== Somebody suggested we should add a DOS2UNIX= processor in the bsd.ports.mk! Edwin -- Edwin Groothuis | Personal website: http://www.MavEtJu.org edwin@mavetju.org | Weblog: http://www.mavetju.org/weblog/weblog.php bash$ :(){ :|:&};: | Interested in MUDs? http://www.FatalDimensions.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021123132530.GK50581>