stefan.waidele.info

My Virtual Press - because the freedom of press applies only to those who have one.


26  03 2007

Ordnung in den Bildern!

Ich habe gerade für LinuxBasics.org eine neue Seite ins Wiki gestellt:
Sometime in Summertime:

Kurz auf deutsch: Die Bilder werden so umbenannt, dass Datum und Uhrzeit des Photos im Dateinamen sind. Ich LIEBE lange Dateinamen!


stw@notebook:~/some-pics$ for PIC in *.jpg ; do mv -v $PIC \
Gone-Fishing_$(LANG=C exif -m -t "Date and Time" $PIC | \
grep "Value:" | cut -c 10-28 | \
sed -e "s/://g" -e "s/ /-/")-$PIC-snapshop-by-me.jpg\
; done
„IMG_5355.jpg“ -> „Gone-Fishing_20070218-122214-IMG_5355.jpg-snapshop-by-me.jpg“
„IMG_5356.jpg“ -> „Gone-Fishing_20070218-122308-IMG_5356.jpg-snapshop-by-me.jpg“
„IMG_5357.jpg“ -> „Gone-Fishing_20070218-122316-IMG_5357.jpg-snapshop-by-me.jpg“
„IMG_5358.jpg“ -> „Gone-Fishing_20070218-122321-IMG_5358.jpg-snapshop-by-me.jpg“
„IMG_5359.jpg“ -> „Gone-Fishing_20070218-122336-IMG_5359.jpg-snapshop-by-me.jpg“
„IMG_5360.jpg“ -> „Gone-Fishing_20070218-122339-IMG_5360.jpg-snapshop-by-me.jpg“
„IMG_5361.jpg“ -> „Gone-Fishing_20070218-122344-IMG_5361.jpg-snapshop-by-me.jpg“
„IMG_5362.jpg“ -> „Gone-Fishing_20070218-125624-IMG_5362.jpg-snapshop-by-me.jpg“

Anschließend noch ein

mmv "*.jpg*.jpg" "#1#2.jpg"

und die Sache ist gut.

Weitere nette Sachen mit Linux und digitalen Bildern habe ich hier und hier.


Leave a Reply

« Die Rückkehr der Klowand Sicherheit, Überwachung, Flash-Cookies und Behavioral Analysis »