www.delorie.com/archives/browse.cgi | search |
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 |
From: | "Rob" <relaxedrob AT optushome DOT com DOT au> |
To: | "Cygwin" <cygwin AT cygwin DOT com> |
Subject: | Edit file |
Date: | Sat, 12 Jan 2002 00:48:18 +1100 |
Message-ID: | <PKEEKEEIHKANEHFMEKENKEPICMAA.relaxedrob@optushome.com.au> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
Importance: | Normal |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |