#!/bin/sh # reguire: exif for i in *; do mv "$i" `exif -i "$i" | grep 0x0132 | cut -f 2 -d \| | sed "s/ *$//" |tr ": " "\-\-"`.jpg ; done