Date: Mon, 21 Jun 2010 19:21:48 +0800 From: Aiza <aiza21@comclark.com> To: "questions@freebsd.org" <questions@freebsd.org> Subject: .sh for loop Message-ID: <4C1F4B4C.2000006@comclark.com>
next in thread | raw e-mail | index | archive | help
In a script I have this code path="/usr/namelist" for name in "${path}/${group}"*; do found_list="${found_list} ${found_name}" done 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C1F4B4C.2000006>