PodcastGenerator | Open Source Podcast Publishing Solution | Generator Utils library
kandi X-RAY | PodcastGenerator Summary
kandi X-RAY | PodcastGenerator Summary
Open Source Podcast Publishing Solution since 2006
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PodcastGenerator
PodcastGenerator Key Features
PodcastGenerator Examples and Code Snippets
Community Discussions
Trending Discussions on PodcastGenerator
QUESTION
I want to set the time of each file in a directory to start at the zero hour of the day in question, and just add a second to each file recursively (incrementing each time)
So, grabbing today's date and time 2020-06-07 03:28:00
I want to reset the time of the files, in the order of their name, to start at 2020-06-07 00:00:00
, and then add a second to each file, incrementing each time. I kinda know what I need to do, but don't know how to do it, as I'm not proficient enough in bash.
- I assume a for loop to go through the files by name, and to increment each file one above the previous
- I know I need to set the time to current date, then reset the time to
00:00:00
- I assume
touch -d
with a "+1 second" is the right option - I don't need to change the filename, just the timestamp
I just have no idea how to write the code.
The output would (effectively) be for all files in:
...ANSWER
Answered 2020-Jun-11 at 14:34You can work with dates using the date
command, and then set the time using the touch
command.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install PodcastGenerator
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page