Add date stamp to filenames of photos by Sony Xperia camera app

(setopt CSH_NULL_GLOB; cd /path/to/Camera\ Uploads; for i in DSC_* MOV_*; do mv -v $i "$(date +%F -d @$(stat -c '%Y' $i)) $i"; done)
Sony's Xperia camera app creates files without time-stamped names. Thus, after deleting files on the phone, the same names will be reused. When uploading the photos to a cloud storage, this means that files will be overwritten. Running this command after every sync of uploaded photos with the computer prevents this.
Sample Output
'DSC_0075.JPG' -> '2020-04-11 DSC_0075.JPG'
'DSC_0076.JPG' -> '2020-04-11 DSC_0076.JPG'

1
By: langec
2020-04-12 06:15:07

What Others Think

Thanks for the solution to this command. I have been searching for this from the last few days.
NelsonFAnderson · 84 weeks ago
I have been looking for this command from a few days and didn't find any luck until I landed on this website. I really like this website and it also helps me with my programming assignments that I do with the help ofessaywriting.net.nz/assignment-help-nz. I really like their services and would suggest them to anyone who needs writing assistance.
Fiself1944 · 84 weeks ago
The apps and tracking 1-5 devices on an iPhone are simply gorgeous. I can’t imagine having the smartphones of today fifteen years ago as a journalist when I was carting around armloads of equipment to get the spy messages I can get today with a 2019 smartphone. And I would not have such unique powers without the help of https://www.hoverwatch.com/ and their professionalism.
WalterDeversar · 80 weeks and 3 days ago
the article is soo nice the cloud computing for the port is so good have touch with gbwhatsapp apk
moksha456 · 80 weeks and 2 days ago
Thanks for the detailed information about this. I would love to see more such awesome blog posts from you. Keep up the Good Work! Can someone tell me which version of whatsapp is better? Gbwhatsapp and Fmwhatsapp apk are the best?
immortalGoku1452 · 72 weeks and 6 days ago
Hi, thanks for your information. It's very detailed and usefull.
adamjoseph · 70 weeks and 6 days ago
Hi, thanks for your information. It's very detailed and usefull.
adamjoseph · 70 weeks and 6 days ago
The apps and tracking 1-5 devices on an iPhone are simply gorgeous. I can’t imagine having the smartphones of today fifteen years ago as a journalist when I was carting around armloads black friday vpn deals
adamjoseph · 70 weeks and 3 days ago
Oh, this really works to add a date stamp to filenames of photos by Sony Xperia camera app. This code is really working for me. What about you guys? Have you tried this method? If this, then please raise your hand. CBD Dosage
charlly · 66 weeks ago
Great article. Thanks for sharing https://gta5cheats.co
astin082020 · 65 weeks and 4 days ago
Hi! I had the same problem problem
tomharris · 63 weeks and 1 day ago
I have a small business and now I'm thinking of developing a soft for it. My comany is going to expand and I'm convinsed that website creation and software development for small business plays an important role in its future success. What is your opinion on this topic? Thanks in advance!
tomharris · 63 weeks and 1 day ago
I can tell you about the applications. Because rocking somewhere is delusional and just a loss of money in fact, if you decide to rock for a fee. I can say from myself that the best way would be to go to professionals and download for example on play market . There you can already know for sure that there will be no problems with quality applications and there will be no need to lose money on it. So be sure to get acquainted, for example, I hope that it will be really useful for you now. I hope that someone will be able to help. Good luck!
Manicopus · 62 weeks and 5 days ago
One day, I came and tried to suppress my breath, and I was sad to drink to kill time. 1v1 lol slope unblocked
leschrapid · 62 weeks and 3 days ago
When I read this article, I got some details of how to add a date stamp to filenames of photos by Sony Xperia camera app. You gave a detailed description of this topic, and easy to understand it. Anyway, thanks for sharing the post, ad it is effective too. CBD facts
ryanbabraham · 58 weeks and 5 days ago
great content! will recommend this site to my friends breast implants cleveland
looneyhans · 58 weeks and 1 day ago
nice breast implants cleveland
looneyhans · 58 weeks and 1 day ago
Oh great and this article helpful for everyone. But I have some questions about this app and in my free time, I will ask. Now I am reading information about cheap app developers in Kenya because I have need some development information. I hope so, I will know soon about this.
KennethIWilliams · 54 weeks and 6 days ago
I had been searching for the answer, but unfortunately did not find a right solution. Do you know how much does an http://vote.sparklit.com/comments.spark?contentID=645948&action=viewTopic&commentID=31103554&pollID=645319>on-demand delivery app development cost? I think that the popularity of the development of such apps during the pandemics has become higher. Its demand has risen in parrallel with the high demand for fitness, healthcare and online shopping apps.
tomharris · 54 weeks and 2 days ago
I had been searching for the answer, but unfortunately did not find a right solution. Do you know how much does an on-demand delivery app development cost? I think that the popularity of the development of such apps during the pandemics has become higher. Its demand has risen in parrallel with the high demand for fitness, healthcare and online shopping apps.
tomharris · 54 weeks and 2 days ago
thanks for this sandblastingorlando.net
looneyhans · 53 weeks and 4 days ago
thanks for this lovely and very cool article! weddingphotographerswichitaks.com
Killersmile · 53 weeks and 1 day ago
cant wait to find this love, soo great! laser hair removal
idasanka · 48 weeks and 6 days ago
house cleaning olympia wa you are soo inspiring! thanks for this!
yeoyeo · 47 weeks and 2 days ago
love this soo much! pray
sammm · 44 weeks and 1 day ago
Whoaaaaaaaa. Informative! Love it! cabinets idaho falls
aegyjingoo · 35 weeks ago
Aw, this was a decent post. Taking the time and genuine exertion to make a breathtaking article… yet what may I have the alternative to say… I falter a ton and never figure out some approach to complete anything. hdhub4u nit
gadgetsonlin · 33 weeks and 5 days ago
woow nice...
thomaskin · 29 weeks and 4 days ago
Hi there, I found your blog via Google while looking for a related topic, your site came up, it looks great. I’ve bookmarked it in my google bookmarks. http://deutschland-news.org/2021/06/30/on-line-baccarat-activity/">On line Baccarat Activity
robinjack · 21 weeks and 6 days ago
every woman loves to wear those pretty but expensive diamond rings, i would love to give my girlfriend a diamond ring” buy-4f-pentedrone-online
robinjack · 16 weeks and 5 days ago
There are some attention-grabbing time limits on this write-up but I don’t know if I see all of them heart to heart. There may possibly be some validity but I will consider maintain viewpoint until I look into it additional. Great article , thanks and we want additional! Added to FeedBurner at the same time. mental health treatment plan software
robinjack · 13 weeks and 5 days ago
After research a couple of of the weblog posts in your website now, and I truly like your means of blogging. I bookmarked it to my bookmark website checklist and will probably be checking back soon. Pls check out my website online as effectively and let me know what you think. day care in bethesda md
robinjack · 11 weeks and 6 days ago
Mori Condo at Guillemard / Jalan Molek By Roxy-Pacific. Get Price, Brochure, Floor Plan, Price List & More. Hotline 61006226 Mori Condo Floor Plan
robinjack · 9 weeks and 5 days ago
Nice....it's so useful....thanks for sharing it. i was worried about this issue...i'm happy finding this solution. Kinemaster MOD APK
Norita31 · 9 weeks and 2 days ago
Wonderful information! I found amazing information on the blogs i suggest everyone to follow the links below to get download files from this website.gb whatsapp apk
wick09788 · 8 weeks and 3 days ago
Great...adding the time stamp to the pic names makes it easy to find them. Thanks for the command. whatsapp mod
Mary · 3 weeks and 3 days ago
Hi there! Would you make use of Facebook? My partner and i’d like to adhere to you in the event it would be alright. My partner and i’m totally enjoying your website and appear to brand new revisions. transducertechniques.com - Load Cells
robinjack · 2 weeks and 6 days ago
Thank you a bunch for sharing this with all folks you actually realize what you’re speaking approximately! Bookmarked. Kindly additionally seek advice from my site =). We could have a link trade contract between us! TSA site
yousuf · 6 days 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: