iterate over files in directory bash code example
Example 1: bash loop over files in directory
#!/bin/bash
for filename in /Data/*.txt; do
...
done
Example 2: bash iterate over list of files
FILES="/path/to/files*"
for FILE in $FILES ; do echo $FILE ; done