.sh for loop

Aiza aiza21 at comclark.com
Mon Jun 21 11:21:51 UTC 2010

In a script I have this code
   for name in "${path}/${group}"*; do
      found_list="${found_list} ${found_name}"

The "done" starts another loop. How do I code to know when the "for" has 
completed. I want to echo "results of for = ${found_list}" to see the 
accumulated contents. If I put the echo after the "done" I see it for 
each loop.

More information about the freebsd-questions mailing list