Re: Looping through files in a directory

2010-11-11 Thread fuglyducky
On Nov 10, 4:14 pm, James Mills wrote: > On Thu, Nov 11, 2010 at 8:46 AM, Matty Sarro wrote: > > Short story - I have a few thousand files in a directory I need to parse > > through. Is there a simple way to loop through files? I'd like to avoid > > writing a python script that can parse 1 file,

Re: Looping through files in a directory

2010-11-10 Thread r0g
On 11/11/10 06:23, Chris Rebert wrote: On Wed, Nov 10, 2010 at 10:11 PM, r0g wrote: On 11/11/10 00:17, Steve Holden wrote: On 11/10/2010 5:46 PM, Matty Sarro wrote: Short story - I have a few thousand files in a directory I need to parse through. Is there a simple way to loop through files?

Re: Looping through files in a directory

2010-11-10 Thread Chris Rebert
On Wed, Nov 10, 2010 at 10:11 PM, r0g wrote: > On 11/11/10 00:17, Steve Holden wrote: >> On 11/10/2010 5:46 PM, Matty Sarro wrote: >>> >>> Short story - I have a few thousand files in a directory I need to parse >>> through. Is there a simple way to loop through files? I'd like to avoid >>> writin

Re: Looping through files in a directory

2010-11-10 Thread r0g
On 11/11/10 00:17, Steve Holden wrote: On 11/10/2010 5:46 PM, Matty Sarro wrote: Short story - I have a few thousand files in a directory I need to parse through. Is there a simple way to loop through files? I'd like to avoid writing a python script that can parse 1 file, and have to call it a f

Re: Looping through files in a directory

2010-11-10 Thread Tim Chase
On 11/10/10 16:46, Matty Sarro wrote: Short story - I have a few thousand files in a directory I need to parse through. Is there a simple way to loop through files? I'd like to avoid writing a python script that can parse 1 file, and have to call it a few thousand times from a bash script. Any in

Re: Looping through files in a directory

2010-11-10 Thread Emile van Sebille
On 11/10/2010 2:46 PM Matty Sarro said... Short story - I have a few thousand files in a directory I need to parse through. Is there a simple way to loop through files? I'd like to avoid writing a python script that can parse 1 file, and have to call it a few thousand times from a bash script. An

Re: Looping through files in a directory

2010-11-10 Thread Chris Rebert
On Wed, Nov 10, 2010 at 2:46 PM, Matty Sarro wrote: > Short story - I have a few thousand files in a directory I need to parse > through. Is there a simple way to loop through files? I'd like to avoid > writing a python script that can parse 1 file, and have to call it a few > thousand times from

Re: Looping through files in a directory

2010-11-10 Thread Steve Holden
On 11/10/2010 5:46 PM, Matty Sarro wrote: > Short story - I have a few thousand files in a directory I need to parse > through. Is there a simple way to loop through files? I'd like to avoid > writing a python script that can parse 1 file, and have to call it a few > thousand times from a bash scri

Re: Looping through files in a directory

2010-11-10 Thread James Mills
On Thu, Nov 11, 2010 at 8:46 AM, Matty Sarro wrote: > Short story - I have a few thousand files in a directory I need to parse > through. Is there a simple way to loop through files? I'd like to avoid > writing a python script that can parse 1 file, and have to call it a few > thousand times from

Looping through files in a directory

2010-11-10 Thread Matty Sarro
Short story - I have a few thousand files in a directory I need to parse through. Is there a simple way to loop through files? I'd like to avoid writing a python script that can parse 1 file, and have to call it a few thousand times from a bash script. Any input or pointers to functions that'd help