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