Add timestamp of photos created by the “predictive capture” feature of Sony's Xperia camera app at the beginning of the filename

(setopt CSH_NULL_GLOB; cd /path/to/Camera\ Uploads; for i in DSCPDC_000*; do mv -v $i "$(echo $i | perl -lpe 's/(DSCPDC_[0-9]{4}_BURST)([0-9]{4})([0-9]{2})([0-9]{2})/$2-$3-$4 $1$2$3$4/')"; done)
The “predictive capture” feature of Sony's Xperia camera app hides the date stamp deeply inside the filename. This command adds another date stamp at the beginning of the filename.
Sample Output
'DSCPDC_0000_BURST20191215123205830.JPG' -> '2019-12-15 DSCPDC_0000_BURST20191215123205830.JPG'
'DSCPDC_0000_BURST20200119191047162.JPG' -> '2020-01-19 DSCPDC_0000_BURST20200119191047162.JPG'

0
By: langec
2020-04-12 06:20:59

What Others Think

I am a software engineer and I often go with such coding in my daily routine. But at times I get confused and I am not able to get through simple problems that require little attention and then I read reviews about edubirdie from youressayreviews.com source to get solution of my problems. Well, all thanks to you for guiding us with such ease. Well the coding is done accurately.
KurtisPowlowski · 81 weeks and 2 days ago
I am not sure if it works. I have been working on different APIs lately and found a few APIs that work with different devices. Haven't tried sitemap codes on the Xperia camera. Possibly because I do not use camera features much. I am a part of digital marketing services in US thus I can only work on the sitemaps that are related to apps and websites.
Timothyshaw · 78 weeks and 1 day ago
Implement directives issued by the state. Everyone joins hands to fight against epidemics, limiting moving out indoors to keep the living environment clean. fireboy and watergirl
pikachu88 · 77 weeks and 2 days ago
Thanks for the post. There are lots of good apps on the aptoide store. Everyone can access at https://apkrapido.com/aptoide/
delamada · 76 weeks and 6 days ago
Your post has been so helpful because it was clear and concise writing made it easy to understand. jiofi.local.html
malkovich · 70 weeks and 1 day ago
I'm impressed, I must say. Very rarely do I come across a blog thats both informative and entertaining, and let me tell you, you ve hit the nail on the head. Your blog is important.. Txtcartapp
ayesha · 68 weeks and 4 days ago
pleasant post, stay aware of this fascinating work. It truly regards realize that this subject is being secured likewise on this site so cheers for setting aside time to talk about this! Txtcartapp
ayesha · 68 weeks and 4 days ago
google
ryanmatt · 67 weeks and 1 day ago
CBD Dosage
charlly · 65 weeks and 6 days ago
That's a lot of codes, I'm ignorant with those codes. I'm just a gamer and a streamer. You can watch my videos in Twitch and in YouTube. Usually I live stream my Counter Strike: Global Offensive, Diablo III, and Red Dead Redemption games. But for this month. I will play honkai impact third. I'm excited to play this game. I read some positive reviews and I can't wait to finally play it. https://chrome.google.com/webstore/detail/spades-plus/jonaaojmjfhpkepfnkfkdcfghogkgjcf
simplejack · 65 weeks and 1 day ago
digital marketing services in US
BrendaMadden · 64 weeks and 4 days ago
This is what I've been looking for, really meaningful https://wordcounter.tools
chinachin · 63 weeks and 2 days ago
This is what I've been looking for, really meaningful word counter
chinachin · 63 weeks and 2 days ago
great content! will recommend this site to my friends breast reduction surgery little rock
looneyhans · 58 weeks ago
Thanks for sharing the post for us. In this post, the author shares some details of how to add the timestamp of photos. Your post gave me a clear idea about this topic, and easy to understand it. Keep sharing more post like this. http://howtofixmyprinter.com/printer-driver-unavailable/">driver unavailable for printer
ryanbabraham · 56 weeks and 1 day ago
bestessays fraud
MattiePowlowski · 53 weeks and 6 days ago
works well. thanks for this sandblastingvancouverwa.com
looneyhans · 53 weeks and 3 days ago
cool very cool! lubbockweddingphotographers.com
Killersmile · 53 weeks ago
glad i found this site! laser hair removal
idasanka · 48 weeks and 6 days ago
house cleaning santa cruz I really enjoyed reading your article. I found this as an informative and interesting post, so I think it is very useful and knowledgeable.
yeoyeo · 47 weeks and 1 day ago
The information I have received is not only very useful but also contributes to my work easy how to draw .
noahcentineo · 45 weeks and 2 days ago
thank you for this! really appreciate you doing this pray
sammm · 44 weeks ago
Thanks! A Lot! Love this site! cabinets spokane
aegyjingoo · 35 weeks ago
Thank you for info! I can recommend https://computools.com/software-development-life-cycle-sdlc/ for better understanding of development process.
MikeKramer · 31 weeks and 4 days ago
I can recommend https://computools.com/software-development-life-cycle-sdlc/ for better understanding of development process
MikeKramer · 31 weeks and 4 days ago
Capture good times... eyelash extensions albany NY
geebranz · 29 weeks and 1 day ago
Ingin kampanye dan bingung? ya bagi Anda yang ingin mendapatkan harga kaos partai murah, untuk daaerah jakarta, sebaiknya pesan kaos partai dengan bahan hyget yang bagian badannya berwarna putih. Selain murah, itu akan mempermudah dan mempercepat pembuatan dibanding dengan bahan berwarna yang tentu juga mempengaruhi finances Anda.
kopijoni · 24 weeks and 6 days ago
This website online can be a stroll-by means of for all the data you needed about this and didn’t know who to ask. Glimpse here, and you’ll undoubtedly uncover it. http://besttemplatetuning.com/2021/06/30/baccarat-casino-match-learning-the-fundamentals/">Baccarat Casino Match
robinjack · 21 weeks and 5 days ago
Thank for info. I think. this could help you https://computools.com/devops-services/ if you're interested
MikeKramer · 21 weeks ago
Great article, thanks for this wonderful content!! visit: https://ultra-gamers.com/shadow-fight-2-special-edition-mod-apk/ https://ultra-gamers.com/dead-target-mod-apk/
meghaph · 18 weeks and 5 days ago
Your blog never ceases to amaze me, it is very well written and organized.;-:~. buy nembutal australia
robinjack · 16 weeks and 5 days ago
The new smoking alternative has become famouse in the market. It is called the Electronic Cigarettes, bring a packet to your home and than say me how much you liked it. room scheduling system touch screen
robinjack · 13 weeks and 4 days ago
I discovered your blog post web site online and check a few of your early posts. Continue to keep in the great operate. I recently extra increase RSS feed to my MSN News Reader. Seeking toward reading much more from you at a later time!… workwear jacket
robinjack · 11 weeks and 5 days ago
LIV @ MB by Bukit Sembawang. Call 61009266. Get Discounts, Direct Developer Price, Brochure, Floor Plan, Price List. Former Katong Park Towers. LIV @ MB, Liv At MB
robinjack · 10 weeks and 5 days ago
not everyone would need a nose job but my girlfriend really needs some rhinoplasty coz her nose is kind of crooked* the avenir
robinjack · 7 weeks and 6 days ago
I’m so happy to read this. This is the kind of manual that needs to be given and not the random misinformation that’s at the other blogs. Appreciate your sharing this best doc. addiction rehab in new jersey
robinjack · 7 weeks and 4 days ago
But beyond simple preservation, it had several advantages over fresh fruit. buy mazatapec magic mushroom Los angeles
robinjack · 6 weeks ago
Oh my goodness! a wonderful post dude. Thanks a lot Even so We’re experiencing issue with ur rss . Don’t know why Unable to register for it. Possibly there is anybody getting identical rss dilemma? Anybody who knows kindly respond. Thnkx bvi catamaran charter
robinjack · 2 weeks and 6 days ago
Some truly nice and utilitarian information on this web site , likewise I think the design and style holds fantastic features. Total Sports Apparel
yousuf · 5 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: