how to write a script that take a list of files in current directory and loops over each file code example
Example: for loop in bash for files
#!/bin/bash
FILES=/path/to/*
for f in $FILES
do
echo "Processing $f file..."
# take action on each file. $f store current file name
cat $f
done