This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Edit file
- From: "Gerrit P. Haase" <freeweb at nyckelpiga dot de>
- To: "Rob" <relaxedrob at optushome dot com dot au>
- Cc: cygwin at cygwin dot com
- Date: Fri, 11 Jan 2002 15:11:19 +0100
- Subject: Re: Edit file
- Organization: convey Information Systems GmbH
- References: <PKEEKEEIHKANEHFMEKENKEPICMAA.relaxedrob@optushome.com.au>
- Reply-to: "Gerrit P. Haase" <freeweb at nyckelpiga dot de>
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/