In a bash shell script, writing a for loop that iterates over string values
The correct syntax is as follows:
#!/bin/bash
for fname in a.txt b.txt c.txt
do
echo $fname
done
The correct syntax is as follows:
#!/bin/bash
for fname in a.txt b.txt c.txt
do
echo $fname
done