#!/bin/bash ls -1 *.jpeg | while read file do target=echo "${file}_`date -r "${file}" +%H:%M:%S`" mv "$file" "$target" done