tag:blogger.com,1999:blog-5998114554635012438.post8776832854915813735..comments2023-06-17T16:05:53.222+01:00Comments on The Unbearable Lightness of Bit: Organize your pictures by EXIF tags with bashNarcolessicohttp://www.blogger.com/profile/04935543128240934969noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-5998114554635012438.post-62231608993922549602019-12-07T09:04:32.226+00:002019-12-07T09:04:32.226+00:00@Anonymous this scripts acts in the current direct...@Anonymous this scripts acts in the current directory, just CD to the directory where the drive is mounted (e.g. "cd /media/user/usbstick").Narcolessicohttps://www.blogger.com/profile/04935543128240934969noreply@blogger.comtag:blogger.com,1999:blog-5998114554635012438.post-55516517215551712222019-12-06T21:17:23.877+00:002019-12-06T21:17:23.877+00:00Can someone help me with this? The folders I want ...Can someone help me with this? The folders I want to run this on are on an external. How do I point the script to the external. Which parts specifically do I paste into Terminal? ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5998114554635012438.post-18230467775201412332016-01-03T21:02:02.376+00:002016-01-03T21:02:02.376+00:00Be careful if you have pics taken within same seco...Be careful if you have pics taken within same second - the script as it is now will overwrite all but the last one.Andyhttps://www.blogger.com/profile/12305808604745125012noreply@blogger.comtag:blogger.com,1999:blog-5998114554635012438.post-54163186335372002752009-08-10T01:21:38.182+01:002009-08-10T01:21:38.182+01:00#!/bin/bash
# PictureRenamer 1.0 - 08/2009 by Kaan...#!/bin/bash<br /># PictureRenamer 1.0 - 08/2009 by Kaan Atasever<br /># This script renames your pictures with date and time<br />#<br /># GPL v3 license http://www.gnu.org/licenses/gpl-3.0.html<br /><br />ls -1 *.jpg | while read fn<br />do<br /> export pa1=`exiv2 "$fn" | grep timestamp | awk '{ print $4 }' | tr ":" "-"`<br /> export pa2=`exiv2 "$fn" | grep timestamp | awk '{ print $5 }' | tr ":" "-"`<br /> export pa="$pa1 $pa2.jpg"<br /> mv "$fn" "$pa"<br /> echo File "$fn" renamed as "$pa"<br />done<br /><br />echo All done!Kaanhttp://www.commandlinefu.com/noreply@blogger.comtag:blogger.com,1999:blog-5998114554635012438.post-14284464143720896432009-02-01T18:39:00.000+00:002009-02-01T18:39:00.000+00:00Here is an enhanced version: organizeHere is an enhanced version: <A HREF="http://dev.exiv2.org/boards/3/topics/show/44" REL="nofollow">organize</A>Anonymoushttps://www.blogger.com/profile/18446668443767780739noreply@blogger.comtag:blogger.com,1999:blog-5998114554635012438.post-47674716161401296052009-01-06T15:03:00.000+00:002009-01-06T15:03:00.000+00:00Really many thanks. This is exactly what I was loo...Really many thanks. This is exactly what I was looking for.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5998114554635012438.post-6738401061365910202008-08-07T00:52:00.000+01:002008-08-07T00:52:00.000+01:00Thanks, just what I was looking for... so simple.Thanks, just what I was looking for... so simple.Anonymousnoreply@blogger.com