public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Neil Bothwick <neil@digimed.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Cellphone VFAT datestamps versus linux datestamps
Date: Wed, 29 Aug 2018 08:22:31 +0100	[thread overview]
Message-ID: <20180829082231.1f859b17@digimed.co.uk> (raw)
In-Reply-To: <20180829023951.GB17522@waltdnes.org>

[-- Attachment #1: Type: text/plain, Size: 576 bytes --]

On Tue, 28 Aug 2018 22:39:51 -0400, Walter Dnes wrote:

>   Given this info, I can cobble together a short script.  A "for" loop
> cycles through "*.jpg".  Read "CreateDate" from the EXIF data, and feed
> it into the "touch" command, which would reset the physical file
> datestamp.

You don't even need that, exiftool has a FileModifyDate tag, which is the
filesystem date not an EXIF tag, so you can simply set FileModifyDate to
CreateDate for each file.

exiftool '-FileModifyDate<CreateDate' *.jpg


-- 
Neil Bothwick

The best antiques are old friends.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  parent reply	other threads:[~2018-08-29  7:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <wrCeS-64V-1@gated-at.bofh.it>
2018-08-28  3:31 ` [gentoo-user] Cellphone VFAT datestamps versus linux datestamps james
2018-08-29  2:39   ` Walter Dnes
2018-08-29  5:35     ` james
2018-08-29  7:22     ` Neil Bothwick [this message]
2018-08-30  0:45       ` [gentoo-user] [SOLVED] " Walter Dnes
2018-08-31 19:34         ` james
2018-08-28  2:48 [gentoo-user] " Walter Dnes
2018-08-28  3:22 ` R0b0t1
2018-08-28  4:07   ` R0b0t1
2018-08-29  2:05   ` Walter Dnes
2018-08-28  3:41 ` james
2018-08-28  3:58 ` james
2018-08-28 14:07 ` Mike Gilbert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180829082231.1f859b17@digimed.co.uk \
    --to=neil@digimed.co.uk \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox