delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/25/10:32:45

X-Spam-Check-By: sourceware.org
Message-ID: <453F74AC.4060304@wi.rr.com>
Date: Wed, 25 Oct 2006 09:29:00 -0500
From: Joey Officer <jofficer AT wi DOT rr DOT com>
User-Agent: Thunderbird 1.5.0.7 (Windows/20060909)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: cygwin out of sync with version?
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

I have a script that I run, the script is:

findme.bash:
#!/bin/bash
        for i in $( ls *.gz ); do
                echo Searching $i
                zcat -c $i | grep $1 >> searchresults.txt
                echo Finsihed searching $i , moving on to the next file...
        done

Now, this used to work just fine, but now I receive the following error 
message:

$ ./findme.bash 10.65.118.
'/findme.bash: line 2: syntax error near unexpected token `do
'/findme.bash: line 2: `        for i in $( ls *.gz ); do

The only thing that I can think of that might have changed was that I 
recently downloaded and installed the mjpegtools for cygwin, which might 
have been compiled under a different version of cygwin, earlier/devel? 
... at anyrate, I've run this same script on another linux box for 
testing, and it still works just fine, which is why I'm back to thinking 
that this is a problem with my install of cygwin.

Is there a way to repair the existing installation, or a way to confirm 
that all of the installed software is the correct version?  I've already 
run the setup, and had it perform the updates that were available, but 
it still is erroring out.

Thanks,
Joey


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019