This is the mail archive of the
mailing list for the Cygwin project.
- From: "Rob" <relaxedrob at optushome dot com dot au>
- To: "Cygwin" <cygwin at cygwin dot com>
- Date: Sat, 12 Jan 2002 00:48:18 +1100
- Subject: Edit file
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 would like to look for this line:
and edit it to this:
// import visualiser.HostIDVPatcher;
Can I do this?
I tried using sed with this line:
cat visualiser/PositionData.java | s/import
visualiser.HostIDVPatcher;/\/\/import visualiser.HostIDVPatcher;/ | out.txt
and this was what I got:
<r;/\/\/import visualiser.HostIDVPatcher;/ | out.txt
BASH: s/import: No such file or directory
BASH: ///import: No such file or directory
BASH: /: is a directory
BASH: out.txt: command not found
Thanks for any help!
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html