From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CC723138334 for ; Wed, 29 Aug 2018 07:22:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6383EE0895; Wed, 29 Aug 2018 07:22:34 +0000 (UTC) Received: from smarthost01d.mail.zen.net.uk (smarthost01d.mail.zen.net.uk [212.23.1.7]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E309CE0866 for ; Wed, 29 Aug 2018 07:22:33 +0000 (UTC) Received: from [82.69.83.178] (helo=mail.digimed.co.uk) by smarthost01d.mail.zen.net.uk with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fuuoC-0005aC-3U for gentoo-user@lists.gentoo.org; Wed, 29 Aug 2018 07:22:32 +0000 Received: from digimed.co.uk (fenchurch.digimed.co.uk [192.168.1.6]) by mail.digimed.co.uk (Postfix) with ESMTPA id 9770F64310 for ; Wed, 29 Aug 2018 08:22:31 +0100 (BST) Date: Wed, 29 Aug 2018 08:22:31 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Cellphone VFAT datestamps versus linux datestamps Message-ID: <20180829082231.1f859b17@digimed.co.uk> In-Reply-To: <20180829023951.GB17522@waltdnes.org> References: <20180829023951.GB17522@waltdnes.org> Organization: Digital Media Production X-Mailer: Claws Mail 3.17.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/6TeIEj0/_YIKx7lmQfalBEb"; protocol="application/pgp-signature" X-Originating-smarthost01d-IP: [82.69.83.178] Feedback-ID: 82.69.83.178 X-Archives-Salt: 8a5ad7ab-162d-457d-9500-60d2c0882e45 X-Archives-Hash: f7b2d0a86adb63c5c10ec3b19dc86892 --Sig_/6TeIEj0/_YIKx7lmQfalBEb Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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