#!/bin/sh for a in ./*.WAV; do exiftool -d %Y-%m-%d_%H%M%S%%-c__ '-filename<${DateTimeOriginal}.%e' $a done #exiftool -filename=%-.6f%.3nC.%e `ls | sort`