Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <20010904082945.44071.qmail@web12604.mail.yahoo.com> Date: Tue, 4 Sep 2001 09:29:45 +0100 (BST) From: =?iso-8859-1?q?hrishy?= Subject: awk script compile problem To: cygwin AT cygwin DOT com In-Reply-To: <17B78BDF120BD411B70100500422FC6309E339@IIS000> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hello a few minutes ago i installed cygwin and i tried to run the following program. #This is the awk script that will be called by main.sh #the feild separator is | #Created by Hrishikesk Samant #Created on 08-Aug-2001 #BEGIN { FS="|" } if (( $2 ~ /Label/ ) && ( $3 ~ /Not found/ )) { label=label+1 } if (( $2 ~ /Form/ ) && ( $3 ~ /Not found/ )) { form=form+1 } if (( $2 ~ /Report/ ) && ( $3 ~ /Not found/ )){ report=report+1 } END { print FILENAME, "\t" label "\t"form "\t" report >>"result.log"} this program runs correctly under mkstoolkit and on my linux box.but fails to under cygwin. with a parse error ^ if (( $2 ~ /Report/ ) && ( $3 ~ /Not found/ )){ can somebody tell me whats wrong?? ____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie -- 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/