RE: Edit file
This is rather off topic since it's not a cygwin problem, IMO, but I'll help you anyway because I'm nice like that :P What you probably want is: bash$ cat visualiser/PositionData.java | sed "s!import visualiser.HostIDVPatcher;!//import visualiser.HostIDVPatcher;!" > out.txt I've used ! instead of / because it saves you having to escape the // and sed lets you use almost any delimiter that you want. I haven't actually tested this and so I can't vouch 100% that it'll work, however it should. If you carry on having problems then email me privately and I'll see what I can do to help you out. HTH, Carl -Original Message- From: Rob [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 1:48 PM To: Cygwin Subject: Edit file 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: :-] -- 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/ === Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other commitment through the use of this email. Experian Limited (registration number 653331). Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF -- 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/
RE: 1.3.9: java with cygdrive
> -Original Message- > From: Christopher Faylor [mailto:[EMAIL PROTECTED]] > Sent: 29 January 2002 17:02 > To: [EMAIL PROTECTED] > Subject: Re: 1.3.9: java with cygdrive > > It sounds like 'jar' is not a cygwin executable (not surprising) and, > so, does not understand /cygdrive . Is there something else going on > here? > Indeed, Mr Faylor is, of course, right here. cygpath -help Is Your Friend. Carl -- Here comes the disclaimer... === Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other commitment through the use of this email. Experian Limited (registration number 653331). Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF -- 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/
RE: Syntax error on compile
> -Original Message- > From: Christopher Faylor [mailto:[EMAIL PROTECTED]] > Sent: 30 January 2002 16:00 > To: [EMAIL PROTECTED] > Subject: Re: Syntax error on compile > > > On Wed, Jan 30, 2002 at 02:50:51PM +0530, Rajat Bawa wrote: > >Sorry to mail you directly .. > > > >Hope you won't mind telling me the e-mail address at which i > can mail my > >queries (the same at which you have been mailing your > answers/queries) .. as > >[EMAIL PROTECTED] is bouncing the mails back > > Anyone else find this message just a tad confusing? Not really. As I see it Rajat's been trying to send mail to [EMAIL PROTECTED] but getting bounces. Therefore (s)he's mailed you directly to check the address or to see if there's another that (s)he should be mailing too. That's what I got out of it anyway, n'owt to say that I'm actually right :) Carl -- What shall we do today? I know, let's write a disclaimer... === Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other commitment through the use of this email. Experian Limited (registration number 653331). Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF -- 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/
RE: possible worm in cygwin
You might find the following URLs useful: http://sources.redhat.com/ml/cygwin/2002-02/msg00730.html http://sources.redhat.com/ml/cygwin/2002-02/msg00721.html http://sources.redhat.com/ml/cygwin/2002-02/msg00690.html http://sources.redhat.com/ml/cygwin/2002-02/msg00681.html >From what I can see they are the starts of relevant threads already discussed on this list about this very same topic. It's a pity your "search around" for more info didn't take you to the mailing list archive really, because you would have saved yourself some bandwidth :P Sorry if this mail sounds a bit blunt, but there's been quite a lot of traffic on here of late regarding this. Carl > -Original Message- > From: Chris Faulkner [mailto:[EMAIL PROTECTED]] > Sent: 15 February 2002 13:49 > To: [EMAIL PROTECTED] > Subject: possible worm in cygwin > > > Hello > > I've searched around for more about this but only found a > message on comp.security.ssh which said it might be a false > alarm but was not conclusive. > > Whilst doing a Full SystemScan, I got a message from Norton Antivirus > > "The file D:\cygwin\bin\cygz.dll is infected with > the Backdoor.EggHead virus. Unable to repair this file." > > Is this a false alarm ? Does anyone know anything about this ? > > > Thanks > > Chris > > "Earn all you can. But not at the expense of conscience, not > at the expense of our neighbour's wealth, not at the expense > of our neighbour's health." John Wesley > > > > -- > 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/ > === Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other commitment through the use of this email. Experian Limited (registration number 653331). Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF -- 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/