Fix time-stamped filenames of JPEG images according to the EXIF date the photo was taken

(IFS=': '; for i in *.(#i)jpg; do set $(exiv2 -K 'Exif.Image.DateTime' -Pv $i 2> /dev/null); mv -v $i "$1-$2-$3${i#[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]}"; done)
For each *.jpg or *.JPG file in the current directory, extract the date the photo was taken from its EXIF metadata. Then replace the date stamp, which is assumed to exist in the filename, by the date the photo was taken. A trick from https://unix.stackexchange.com/a/9256 is used to split the date into its components.
Sample Output
'2020-04-12 DSC_0146.JPG' -> '2017-12-26 DSC_0146.JPG'
'2020-04-12 DSC_0147.JPG' -> '2017-12-28 DSC_0147.JPG'

0
By: langec
2020-05-16 12:10:00

What Others Think

Excellent and decent post. I found this much informative, as to what I was exactly searching for. Thanks for such post and please keep it up. Best institute for SEO Training Lahore
James4466 · 117 weeks ago
best file document for the photo storage keep a touch with ThopTV Apk
moksha456 · 116 weeks and 4 days ago
Try [url=http://empirepokerschool.com/]poker training[/url] ! here you will learn not only the right, but the secrets of the masters, betting strategies, table etiquette! I promise you, you won’t regret it!
Foraes · 114 weeks ago
Try [url=http://empirepokerschool.com/]poker training[/url] ! here you will learn not only the right, but the secrets of the masters, betting strategies, table etiquette! I promise you, you won’t regret it!
Foraes · 114 weeks ago
Great info about Fix time-stamped filenames. Regards: online nursing essay writing help UK
stephenhawking · 109 weeks and 2 days ago
https://generaltreatments.xyz This Is To Provide General Knowledge About Health Diseases, Infections And Home Remedies, And Nutrition Guidance. For Higher Medication And Treatments.
TRAVELWELS · 107 weeks and 5 days ago
https://generaltreatments.xyz This Is To Provide General Knowledge About Health Diseases, Infections And Home Remedies, And Nutrition Guidance. For Higher Medication And Treatments.
TRAVELWELS · 107 weeks and 5 days ago
I Was Eagerly Looking For Content Like This, Right To The Point And Detailed As Well Accordingly Depending Upon The Matter/Topic. You Have Managed This Greatly For Sure. Leather Jackets In Chicago
DaniyalAhmed · 107 weeks and 1 day ago
lead generation
saeed20 · 101 weeks and 2 days ago
That’s really nice article! I’ve seen such good writings only here. There are a lot of templates of assignments on all subjects. Now this site is one of my favorites. Thank you!
John56832 · 99 weeks and 2 days ago
great content! will recommend this site to my friends
looneyhans · 94 weeks and 2 days ago
great thanks for this fencinggreshamoregon.com
looneyhans · 89 weeks and 5 days ago
lovely article very nice! dentalimplantshonoluluhi.com
Killersmile · 89 weeks and 2 days ago
thanks alot for this breast augmentation scottsdale
looneyhans · 86 weeks and 4 days ago
I truly adored reading your posting eyelash extensions
idasanka · 85 weeks and 2 days ago
wow! love it! you really are the best! couples counseling
idasanka · 85 weeks ago
doula st louis This is the only site the helped me
yeoyeo · 83 weeks and 3 days ago
thank you for this! really appreciate you doing this pray
sammm · 80 weeks and 2 days ago
That's great. I was impressed by your writing. I am happy to see such a topic. Please come to my blog and read it. ToysRUs Credit Card
Cydney · 80 weeks and 1 day ago
"Basic of writing concept which can never be defined by anyone though so you can say its neutral and depends on your learning as you can join online classes here essay writer www.itechsoul.com/8-amazing-writing-apps-to-help-you-with-your-project/ for your subject and there are many topics for your study material anyway. its been a huge response for anyone who wants to join this kind of concept"
Falk1993 · 75 weeks ago
How can I get more infos about that products kitchen remodeling des moines
aegyjingoo · 71 weeks and 2 days ago
That's good news, I've been searching for it for days word finder
diankale · 65 weeks and 6 days ago
i am a movie addict and i watch a lot of movie in just one night, the greatest movie for me is Somewhere In Tome:: http://besttemplatetuning.com/2021/06/30/baccarat-casino-match-learning-the-fundamentals/">Baccarat Casino Match
robinjack · 58 weeks ago
Can I simply say exactly what a relief to discover somebody who truly knows what theyre speaking about over the internet. You definitely learn how to bring a difficulty to light and work out it critical. The diet should see this and can see this side of your story. I cant believe youre less well-liked since you absolutely provide the gift. flexible scheduling software
robinjack · 49 weeks and 6 days ago
Only a quickly hello and also to appreciate talking about your ideas with this page. 80s clothing
robinjack · 48 weeks ago
The Atelier @ Makeway Ave by Bukit Sembawang Hotline 61009266. Get Discounts, Direct Developer Price, Brochure, Floor Plan, Price List & More. Former Makeway View The Atelier Condo
robinjack · 47 weeks ago
There are many posts on the market near this, I do believe taking there reference could experience made this spot or article really informative. Practical goal expression this post is unhealthy. Simply I must pronounce that the info provided here was unique, merely so it will be more in close proximity to complete, supporting to former information will receive been actually good. The points you have touched here are vital, thus I am going to spot many of the information here to create this actually best for entirely the newbie’s here. Thank you for this info. Actually helpful! atelier showflat
robinjack · 44 weeks and 1 day ago
Cheap Gucci Shoes For Men Amaze! I have been searching yahoo for a long time for the i ultimately found it on this page! new jersey addiction rehab
robinjack · 43 weeks and 6 days ago
In addition, the store employees will not involve themselves into any sort of heated arguments or fights. black market guns Ireland
robinjack · 42 weeks and 1 day ago
Vouêtes vraiment bien informé et très intelligent. Vous avez écrit quelque chose que les gens puissent comprendre et faire l’objet fascinant pour tout le monde. Je suis sauver ce pour une utilisation future. el fenn black
robinjack · 39 weeks and 1 day ago
Discover how to deal with your domain get in touch with details and registration. Understand domain namelocking and Exclusive domain name Registration. this website
yousuf · 37 weeks ago
When I originally commented I clicked the -Notify me when new comments are added- checkbox and already whenever a comment is added I get four emails concentrating on the same comment. Can there be any way you possibly can get rid of me from that service? Thanks! santa barbara medical marijuana dispensaries
yousuf · 35 weeks and 4 days ago
Buy Psychedelics Online in USA here at your favorite psychedelics shop. Welcome to the BuyPsychedelicsUSA, The place for all your psychedelic drug and herbs. You’re at the right place to receive new experiences, insights, experiences. BuyPsychedelicsUSA has a large collection of products such as DMT, Magic Mushroom ,LSD , kratom, Ayahuasca and more . buy psychedelics online Take the time to see everything and don’t hesitate to contact us if you have questions or for advice. buy legal psychedelics online is usa uk and australia. buy dmt online buy lsd online buy ayahuasca online ibogaine for sale mdma for sale buy kratom online buy mescaline online buy mushroom online buy psychedelics online usa 4 ACO DMT For Sale Buy 5 MEO DMT Online buy dmt online NN DMT Erowid For Sale dmt vape pens for sale Changa DMT buy lsd gel tabs liquid lsd for sale buy lsd online buy psychedelics online Buy dmt online 5 meo dmt for sale 4-aco-dmt for sale dmt dose how to smoke dmt whats dmt making dmt 4aco dmt smooking dmt mushroom edibles magic mushroom chocolate how to make dmt how long does dmt last buy magic mushrooms online stiiizy pods buy magic mushrooms online Psychedelic Magic Mushrooms For Sale Online Where Can I get Psilocybin Mushroom Online What Are Psilocybins Mushroom buy magic mushrooms online shop dry magic mushroom buy mushroom capsules online shop psilocybin magic mushroom buy magic mushroom edibles buy thc carts online buy thc carts online THC Vapes Carts For Sale Buy Prefilled Vape Cartridges THC Vape Pens For Sale Best THC Vape Cartridge buy dmt online buy lsd online buy psychedelics online Buy dmt online 5 meo dmt for sale 4-aco-dmt for sale https://thcbulksupplies.com buy weed online buy stiiizy pods online buy marijuana online with worldwide shipping buy weed online usa buy weed online Weed For Sale Online in USA where to buy weed online Buying Weed Online Where To Buy Weed Online in USA Buy magic mushrooms Buy nembutal Online 4 aco dmt australia 4 aco dmt buy usa 4 aco dmt for sale 4 aco dmt supplier 4 aco dmt uk 5 meo dmt buy 5 meo dmt where to buy acid blotter paper ayahuasca tea canada Ayahuasca tea for sale buy 5 meo dmt Canada buy 5 meo dmt online Buy ayahuasca tea online Buy DMT Buy DMT online Buy DMT online Canada buy dmt online usa buy dmt vape pen buy liquid lsd Buy lsd Buy LSD acid Buy LSD Gel Tabs online buy lsd online buy LSD tabs online buy lysergic acid DMT for sale dmt pen dmt vape DMT Vape Pen DMT vape pen for sale online dmt vape pens DMT Vape Cartridge LSD acid for sale LSD blotter paper for sale LSD blotter sale lsd blotters for sale lsd for sale lsd for sale online lsd gel tabs lsd tabs for sale lysergic acid for sale Order ayahuasca tea online purchase ayahuasca tea Where can I buy 5-MeO-DMT online Where can I buy ayahuasca tea a href="https://thcbulksupplies.com/"rel="dofollow">buy weed online buy stiiizy pods online buy marijuana online with worldwide shipping buy marijuana edibles online smart bud moon rocks for sale buy cbd oil online dank vapes for sale order brass knuckles online stiiizy pod exotic carts moon rocks drugs buying weed online acdc weed granddaddy purple near me buy new york city diesel grape god strain buy 30 cannabis fat burner capsules buy marijuana flowers online buy sun rocks online buy red congolese live resin online buy pre-rolled joints online buy real weed onlin cheape buy sour diesel online mail order weed order marijuana online weed for sale pineapple punch strain backwood preroll where can i buy weed online buy weed online usa tko carts order weed online buy medical weed online buy weed online usa buy legal weed online where can i buy weed online can you buy weed online order marijuana online marathon-og buy psychedelics online in usa buy weed online in usa
snupdablogger · 29 weeks and 5 days ago
where to get shrooms dried mushrooms african pyramid mushroom african transkei mushroom albino penis envy b+ mushrooms blue meanies mushroom brazilian magic mushroom burmese mushroom golden teacher mushroom ko samui super strain malabar coast martinique mexican mushroom mushroom british columbia super thai mushroom nepalese chitwan mushroom penis envy texas penis envy 6 texas yellow caps vietnamese white jedi mind fuck tri coloured ecuadorian mushroom magic mushsroom edibles mexican cubensis psychedelic chocolate bar where to get shrooms dried mushrooms african pyramid mushroom african transkei mushroom albino penis envy b+ mushrooms blue meanies mushroom brazilian magic mushroom burmese mushroom golden teacher mushroom ko samui super strain malabar coast martinique mexican mushroom mushroom british columbia super thai mushroom nepalese chitwan mushroom penis envy texas penis envy 6 texas yellow caps vietnamese white jedi mind fuck tri coloured ecuadorian mushroom magic mushsroom edibles mexican cubensis psychedelic chocolate bar midnight mint psychedelic chocolate bar origin mango psilo gummies 0.25g-1g origin strawberry psilo gummies 0.25g-1g penis envy psychedelic chocolate bar psilocybin cube gummies vegan dark chocolate psychedelic chocolate bar microdoses brain capsules 50mg-200mg chill capsules 50mg-200mg clarity capsules 50mg-200mg health capsules 50mg-200mg love capsules 50mg-200mg mood capsules 50mg-200mg pure capsules 50mg-200mg social capsules 30 pack 350mg social capsules 5 pack 350mg
johnson20007 · 28 weeks ago
Hey, what kind of anti-spam plugin do you use for your blog.*:’;* zellige tiles
robinjack · 26 weeks and 1 day ago
Thank you for sharing, a great article. I enjoyed reading this article. among us 2
cocacola899 · 24 weeks and 1 day ago
IT LABS PRO est la meilleure société de services d'ingénierie informatique au Maroc, en vous déplaçant à son siège à Marrakech - gueliz vous allez bénéficier des meilleurs services de création de sites et applications de gestion web, cette dernière privilégie ses clients et mettez à leur disposition toutes ses ressources pour l'accomplissement de leurs projets tout en offrant son expertise en conseillant ses clients et les accompagnant pour améliorer leurs images sur intérêt et mieux gérer leurs business. http://www.itlabspro.com/creation-site-web-maroc
itlabspro · 20 weeks and 5 days ago
IT LABS PRO est la meilleure société de services d'ingénierie informatique au Maroc, en vous déplaçant à son siège à Marrakech - gueliz vous allez bénéficier des meilleurs services de création de sites et applications de gestion web, cette dernière privilégie ses clients et mettez à leur disposition toutes ses ressources pour l'accomplissement de leurs projets tout en offrant son expertise en conseillant ses clients et les accompagnant pour améliorer leurs images sur intérêt et mieux gérer leurs business. Creation site web maroc
itlabspro · 20 weeks and 3 days ago
I believe, consider, in any case couple to make sure you question. cement tile kitchen backsplash
robinjack · 17 weeks and 5 days ago
They claim you received't come to feel any Negative effects plus they compare it to smoking cigarettes weed. check out this site
mohsinkhatri · 17 weeks and 4 days ago
With that said, various states have implemented guidelines banning Delta eight goods from being offered. read more
mohsinkhatri · 17 weeks and 3 days ago
Additionally, it has a fantastic mint taste, which helps it drop clean. click here
mohsinkhatri · 17 weeks and 2 days ago
We advise you experiment Utilising the serving dimension, holding in your mind the way less is more rule. click this link
mohsinkhatri · 17 weeks and 1 day ago
It is perfect time to make some plans for the future and it is time to be happy. I've read this post and if I could I desire to suggest you some interesting things or suggestions. Perhaps you could write next articles referring to this article. I want to read more things about it!Zwembaden Very nice article. I enjoyed reading your post. very nice share. I want to twit this to my followers. Thanks !. Zwembad aanleggen This is my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the leisure here! Keep up the good work. I have been meaning to write something like this on my website and you have given me an idea. Tuinontwerp Writing with style and getting good compliments on the article is quite hard, to be honest.But you've done it so calmly and with so cool feeling and you've nailed the job. This article is possessed with style and I am giving good compliment. Best! Zwembaden Limburg
Rumi12 · 14 weeks and 3 days ago
I adore this article for its well-researched content and great wording 1v1 battle build now gg
peterparkerrbu · 14 weeks and 2 days ago
They're produced by the very best degree developers who will be distinguished for your polo dress creating. You'll find polo Ron Lauren inside exclusive array which include particular classes for men, women. Aanleg zwembad I will really appreciate the writer's choice for choosing this excellent article appropriate to my matter.Here is deep description about the article matter which helped me more. Tuinontwerpen Thank you for your post, I look for such article along time, today i find it finally. this post give me lots of advise it is very useful for me. Exclusieve zwembaden It should be noted that whilst ordering papers for sale at paper writing service, you can get unkind attitude. In case you feel that the bureau is trying to cheat you, don't buy term paper from it. Zwembadbouw
Rumi12 · 14 weeks and 1 day ago
They're produced by the very best degree developers who will be distinguished for your polo dress creating. You'll find polo Ron Lauren inside exclusive array which include particular classes for men, women. Zwembad plaatsen I have bookmarked your website because this site contains valuable information in it. I am really happy with articles quality and presentation. Thanks a lot for keeping great stuff. I am very much thankful for this site. Tuinarchitectuur I was just browsing through the internet looking for some information and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject. Bookmarked this page, will come back for more. Polypropyleen zwembad Easily, the article is actually the best topic on this registry related issue. I fit in with your conclusions and will eagerly look forward to your next updates. Tuinarchitecten
Rumi12 · 13 weeks and 6 days ago
It is perfect time to make some plans for the future and it is time to be happy. I've read this post and if I could I desire to suggest you some interesting things or suggestions. Perhaps you could write next articles referring to this article. I want to read more things about it! Monoblok zwembad I was just browsing through the internet looking for some information and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject. Bookmarked this page, will come back for more. Polypropyleen zwembad Through this post, I know that your good knowledge in playing with all the pieces was very helpful. I notify that this is the first place where I find issues I've been searching for. You have a clever yet attractive way of writing. Biotop zwemvijvers It's late finding this act. At least, it's a thing to be familiar with that there are such events exist. I agree with your Blog and I will be back to inspect it more in the future so please keep up your act. Airco Oost-Vlaanderen
Rumi12 · 13 weeks and 5 days ago
Actually I read it yesterday but I had some thoughts about it and today I wanted to read it again because it is very well written. Airco Aalst Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon. Isolatiechape I am always searching online for articles that can help me. There is obviously a lot to know about this. I think you made some good points in Features also. Keep working, great job Vloerisolatie They're produced by the very best degree developers who will be distinguished for your polo dress creating. You'll find polo Ron Lauren inside exclusive array which include particular classes for men, women. Chape
Rumi12 · 13 weeks and 3 days ago
Jason Bateman’s character Nick, who works for a cruel tyrant of a boss played by Kevin Spacey. hot desk booking software
robinjack · 11 weeks and 4 days ago
If you love to wear movies and celebrity outfits so So here's the Tom Cruise bomber jacket for you, this jacket is available in two different types of leather so upgrade your style with this amazing tom cruise leather jacket.
emmawatson3848 · 10 weeks and 2 days ago
Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com
seofox · 9 weeks and 2 days ago
This is so great to read. We have do more things like this for the police men. They are protecting us and we need to support them in this way. rat station
robinjack · 8 weeks and 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: