Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 11 Jan 2002 15:11:19 +0100 From: "Gerrit P. Haase" X-Mailer: The Bat! (v1.53t) Business Reply-To: "Gerrit P. Haase" Organization: convey Information Systems GmbH X-Priority: 3 (Normal) Message-ID: <22102906702.20020111151119@familiehaase.de> To: "Rob" CC: cygwin AT cygwin DOT com Subject: Re: Edit file In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Rob, 2002-01-11 15:07:14, du schriebst: > I would like to make a script that can change a line in a file.. commenting > out a line in a java source file to be precise. [...] > I tried using sed with this line: Hey, we have perl for cygwin! Perl offers much more than sed does:-) perl -i.bak -p -e \ 's#import visualiser.HostIDVPatcher;#// import visualiser.HostIDVPatcher;#;' \ /your/path/to/javasourcefile relaxedGerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/