Howdy! 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: import visualiser.HostIDVPatcher; 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! Rob :-) ;-> :-] -- 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/