From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22356 invoked by alias); 17 May 2002 03:54:45 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 22349 invoked from network); 17 May 2002 03:54:45 -0000 Received: from unknown (HELO rivendell.fangorn.ca) (209.29.198.13) by sources.redhat.com with SMTP; 17 May 2002 03:54:45 -0000 Received: from marklist (helo=localhost) by rivendell.fangorn.ca with local-smtp (Exim 3.12 #1 (Debian)) id 178YpL-0004il-00 for ; Thu, 16 May 2002 23:54:47 -0400 Date: Thu, 16 May 2002 22:39:00 -0000 From: Mark Blackburn To: cygwin@cygwin.com Subject: Re: bash question In-Reply-To: <3CE4430D.5050503@Salira.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-05/txt/msg01073.txt.bz2 You asked this in the wrong place btw, (I think its a bash specific questing) but here goes anyways: #!/bin/bash i=0 for x in 1 2 3; do let i=i+1 echo "item $x" done echo "Processed $i items" cat > /tmp/file <