Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <3AE620E4.37979AF2@beamreachnetworks.com>
Date: Tue, 24 Apr 2001 17:57:08 -0700
From: "Eric M. Monsler" <emonsler@beamreachnetworks.com>
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: James Bergstrom <bergstro@eng.utah.edu>
CC: cygwin@sources.redhat.com
Subject: Re: CYGWIN file structure
References: <Pine.4.10.10104241734050.2421-100000@lab3-3.eng.utah.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Your request is so broad as to be hardly answerable.

For example, 'ls' is a utility distributed with cygwin that is often
used for examining filenames in a directory.

How about something like:

for IMG_FILE in $(ls image*.tif); do
  NEWFILE=$(echo $IMG_FILE | sed s/image/proc_image/ )
  process_image_binary -i $IMG_FILE -o $NEW_FILE
  rm $IMG_FILE
done

as a solution?  
(Note that the above has typos or other bugs with probability
approaching 1.  These have been left in as an exercise for the student.)

I do recall some messages about accessing directory contents from C
code.  IIRC, the list of POSIX calls available under cygwin, available
from the cygwin website, included the apropriate item.  I'm a little
busy, myself, to search the archives right now...


Eric Monsler

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

