[Discuss] cygwin problem

Noel Burton-Krahn noel at burton-krahn.com
Wed Apr 16 11:11:23 PDT 2008


what does this produce?

  find . -iname '*.doc'

Note the ".".  Your example didn't have a directory name before the iname

~Noel


On Wed, Apr 16, 2008 at 11:09 AM, pw <p.willis at telus.net> wrote:
> Hello,
>
>  I have been trying to get a small bash script to work in
>  cygwin but am having some problems.
>
>  If I use a find command in a loop on the command line
>  it works fine:
>
>  ie:
>
>  /> for FIL in `find -iname '*.doc'`; do echo $FIL; done
>
>  (comes up with loads of files)
>
>
>  If I put the same loop in a bash script:
>
>  ie:
>
>  for FIL in `find -iname '*.doc'`; do
>         echo $FIL
>  done
>
>  and then run 'sh script.sh' to test, find doesnt come up with any
>  files...(!?)
>
>  Any ideas anyone?
>
>  Peter
>  _______________________________________________
>  Discuss mailing list
>  Discuss at vlug.org
>  http://ladybug.vlug.org/cgi-bin/mailman/listinfo/discuss
>


More information about the Discuss mailing list