From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 17:20:31 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 79994106564A for ; Thu, 1 Jul 2010 17:20:31 +0000 (UTC) (envelope-from bahamasfranks@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 122778FC0C for ; Thu, 1 Jul 2010 17:20:30 +0000 (UTC) Received: by wwb13 with SMTP id 13so2436wwb.31 for ; Thu, 01 Jul 2010 10:20:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=wbFkLn/yeiTx+RKgfuPaXyvRweEUYQTleODXIF8RJow=; b=vgTwT1EK2P9sg28WL1zWvb5EA+sQP3b2qCQbzyXP1KEnQkd1RSxdtAc7MepaH8NUAH ZL1RI22/Xf6VaA/NZbGuNhfZP/gUZzrJgQ/A7ht+ckxLLkBF9fiE/nB4t6WivdLVE/Ms LQQdLVoxI8/BxsDHB5NffjWuzlb5YezcWcolA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=GnTwL+YbCZwepHrqTconN4sxrwoq/+tWxIukiVwmUfCkUaj+42T8tGyXIGXSK80ac5 b1/zWmW5VXBNDp0Z43innrb4XJDmEQM3uRm2wxFeTPM8a3p/g+x/X547XOwhjCN+rY3M rC2HpmCtr1ltWcQ3/H4LXIWODO/FHUngqY42Q= MIME-Version: 1.0 Received: by 10.227.155.138 with SMTP id s10mr33588wbw.71.1278004825764; Thu, 01 Jul 2010 10:20:25 -0700 (PDT) Received: by 10.231.157.144 with HTTP; Thu, 1 Jul 2010 10:20:25 -0700 (PDT) Date: Thu, 1 Jul 2010 10:20:25 -0700 Message-ID: From: Steve Franks To: freebsd-hackers Content-Type: text/plain; charset=ISO-8859-1 Subject: thoughts on sorting files into sub-folders by access date? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2010 17:20:31 -0000 Hi y'all, My high-end point&shoot camera likes to glob all my photos in a single folder, and it's glutting up my drive, and makes finding a specific trip unpleasant, with no good place for metadata. My SLR sorts them into folders by date, which I love. I can't find anything close googling, so I d/l a bunch of perl examples. Before I figure this out in python (I'm a hardware developer by trade, so that seems most sensible [libc doesn't seem to have any os-agnostic way of playing with file times, no?])... I thought I'd check if there's some trivially simple way of doing this with bash & find first. And, no, I'm kind of a keyboard jockey, so I'm not even considering importing all my photos into some app for handing my metadata. Text files do that just fine if I can sort them into folders. Best, Steve