This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Edit file


 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]