Which of the following examples shows the general structure of a for loop in a shell script?
for *.txt as file = > echo $file
for *.txt ( echo $i )
for file in *.txt doecho $i done
for ls *.txt exec {} \;
foreach @{file} { echo $i
}