RE: [newbie] [Somewhat OT] Recursing in bash

2004-05-15 Thread Bill Shirley
Sounds like a job for 'find' ! find /home/bill -type f -name '*.doc' -exec somecommand someargs {} \; ^ ^ ^ ^ ^ ^ ^ where to only look name what cmdcommand | +-- mandatory startat files pattern

Re: [newbie] [Somewhat OT] Recursing in bash

2004-05-14 Thread robin
Todd Slater wrote: On Fri, May 14, 2004 at 11:18:32PM +0300, robin wrote: I'm trying to write a bash script that will recurse through a directory, find Word files, then run antiword on them. Unfortunately, I'm stuck on the first stage, which is to get it to recognise a directory. I'd thought th

Re: [newbie] [Somewhat OT] Recursing in bash

2004-05-14 Thread Todd Slater
On Fri, May 14, 2004 at 11:18:32PM +0300, robin wrote: > I'm trying to write a bash script that will recurse through a directory, > find Word files, then run antiword on them. Unfortunately, I'm stuck on > the first stage, which is to get it to recognise a directory. I'd > thought this would wor