, , while . , "Unix", , , Solaris, bash .
, , while - ,
result=`mycommand 2>/dev/null | while read item; do echo "FILE_FOUND"; done`
$result. , while .
eval `mycommand | while read item; do echo "FILE_FOUND=1"; done`
"" .
, ,
for item in /tmp/$$.*; do
done