#!/bin/sh for fn in $(find -name '*jpg' -print) do echo $fn done