delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/11/09:26:26

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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" <freeweb AT nyckelpiga DOT de>
X-Mailer: The Bat! (v1.53t) Business
Reply-To: "Gerrit P. Haase" <freeweb AT nyckelpiga DOT de>
Organization: convey Information Systems GmbH
X-Priority: 3 (Normal)
Message-ID: <22102906702.20020111151119@familiehaase.de>
To: "Rob" <relaxedrob AT optushome DOT com DOT au>
CC: cygwin AT cygwin DOT com
Subject: Re: Edit file
In-Reply-To: <PKEEKEEIHKANEHFMEKENKEPICMAA.relaxedrob@optushome.com.au>
References: <PKEEKEEIHKANEHFMEKENKEPICMAA DOT relaxedrob AT optushome DOT com DOT au>
MIME-Version: 1.0

 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019