#!/bin/bash
for file in /path/to/directory/*; do
echo "Processing $file"
# perform some operation on $file
done
code
Bash: How to Loop Over Files in a Directory
bash