X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: mwoehlke <mwoehlke@tibco.com>
Subject:  Re: loop through folders
Date:  Mon, 19 Jun 2006 18:10:59 -0500
Lines: 24
Message-ID: <e77au3$oj9$1@sea.gmane.org>
References:  <4945011.post@talk.nabble.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Thunderbird 1.5.0.4 (X11/20060516)
In-Reply-To: <4945011.post@talk.nabble.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

smanna wrote:
> Hello I am trying to write a script. This is the thing, I want to loop
> through all folders in a certain folder and send all files in these folders
> to a java program. The files are somewhere in the neighbourhood of 170.000.
> the setup is:
>                             Home
> cygwin.sh         program.java                                Folder
>                                                       folder                        
> folder  ...
>                                               folder   folder  ...           
> folder   folder  ...
>                                               files      files    ...            
> files      files    ...
> 
> help would be completely fantastic!!

This is not a Cygwin question. However, 'find . | xargs <your program>' 
might help you. Or 'for f in find . ; do <yourprogram> $f ; done'.

'man find' and 'man bash' will get you started.

-- 
Matthew
...Ruthlessly beating Windows with a hammer until it looks like POSIX.


--
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/

