Monday, December 05, 2011

memperbaiki file modification based on exif data

memperbaiki file modification based on exif data
--------------------------------------------------------------------------------
for f in *.jpeg
do
  exiftool -S -d "%Y%m%d%H%M.%S" -DateTimeOriginal "${f}" \
  | awk '{ print $2 }' \
  | xargs -I % touch -m -t % "${f}"
done
--------------------------------------------------------------------------------
Enhanced by Zemanta

1 comment:

floor scale said...

wah ane coba ye gan tipsnya terima kasih :D