[ Home ] Passports | National Anthems in MP3 | Live chat

Live chat

News | Forum
 

Train Museum:

Warsaw, PolandSeoul, KoreaKyoto, Japan Forums: Rail UK, Rail Australia
Pictures: MoneyMonorailHong Kong light festival High speed trainQueen Elizabeth II in YokohamaTaro - Galapagos Tortoise



Subject: Re: Directory creation and file moving by modification dates? Posted on: Thu, 29 Jul 2010 01:31:31 +0200

On 2010-07-28, Tuxedo wrote:
>> I'm not on the system that script is on, but if you'd like to try it, just
>> give a yell, and I'll find it for you.
>
> Yes, this sounds great! I'd like to give it a try if you would be so kind
> to make it available somewhere.

Mind that this is something I had to cobble together real quick to sort out
my sister's 4500 pictures in a *very* big hurry for xmas, 2 years ago. It's
ugly, but it works. I just had a test run on a batch of pictures.

Go to http://www.rikishi42.net/SkunkWorks/Junk/ and take a copy of the 3
files starting with 'exif'. I put them in my ~/bin/ directory. Make'em
executable.


Right, so try this on a copy first. Say you put your test files in a dir
called ~/pics_test/ .


cd ~/pics_test
find ./ -maxdepth 1 -type f -iname '*.jpg' -exec exif_date.py '{}' ';'


It will:
- create a dir 'Exif_out' in your dir
- create a dir with the date (yyyymmdd) in 'Exif_out'
- rename each file to 'yyyymmdd_hhmmss__OriginalPictureName.jpg'
and move it into 'Exif_out/yyyymmdd/'
- NOT touch files where the Exif date can't be found


We can allways change/remove the base dir, subdirs and file names. Just give
a yell.


Have fun !



--
When in doubt, use brute force.
-- Ken Thompson

231431. Re: Grep multi-line 231431
231432. Discount cheapsale Laguna Beach Jeans
231433. Re: Grep multi-line 231433
231434. Make Money $100 to $200 Daily Online 231434
231435. Re: Confounded by conditional expressions 231435
231436. Re: Confounded by conditional expressions 231436
231437. Re: Confounded by conditional expressions 231437
231438. MOTOROLA 231438
231439. Re: Confounded by conditional expressions 231439
231440. Re: Confounded by conditional expressions 231440
231441. Re: Confounded by conditional expressions 231441
231442. Re: Grep multi-line 231442
231443. Re: Confounded by conditional expressions 231443
231444. Re: Confounded by conditional expressions 231444
231445. Re: Grep multi-line 231445
231446. Re: Confounded by conditional expressions 231446
231447. Availables : More that 3500 Solutions manuals and Test Banks (Part 1)
231448. Availables : More that 3500 Solutions manuals and Test Banks (Part 2)
231449. Availables : More that 3500 Solutions manuals and Test Banks (Part 3)
231450. Question about shift and remains value 231450