Casca itera sobre linhas na variável

#!/bin/bash
#Try to iterate over each line
echo "For loop:"
for item in $list
do
        echo "Item: $item"
done
#Output the variable to a file
echo -e $list > list.txt

#Try to iterate over each line from the cat command
echo "For loop over command output:"
for item in `cat list.txt`
do
        echo "Item: $item"
done
Clumsy Cod