Loop Over Files in a Directory
Iterate over matched files with a glob — safe with nullglob set.
Author:
chris
// Language: Bash
#!/usr/bin/env bash
set -euo pipefail
shopt -s nullglob
for f in *.log; do
printf 'processing %s\n' "$f"
done