*nohtml*

local/bin/imrename

   1 #!/bin/bash
   2 
   3 [[ $1 == -e || $1 == --exif ]] && shift && exiv2 -vFtr '%Y.%m.%d %T' "$@"
   4 [[ $1 == -m || $1 == --meta ]] && shift && LANG= du -h "$@" | while read s f; do
   5     mv -vn "$f" "${f:0:1}_$(identify -format '%wx%h' "$f")-$s.${f##*.}"
   6 done