#!/bin/bash for file in /path/to/directory/*; do echo "Processing $file" # perform some operation on $file done