Re: script to loop through dates

2025-06-27 Thread Todd Zullinger
olivares33561 via users wrote: > We can use awk for this too! We can seq like George > pointed out. We use whichever tool as long as the output > looks as I wanted it to look. > > There are two or three options and they all work. Thanks > to all who have responded. As the Perl mongers among

Re: script to loop through dates

2025-06-27 Thread olivares33561 via users
Sent from ProtonMail, encrypted email based in Switzerland. Sent with Proton Mail secure email. On Friday, June 27th, 2025 at 8:33 AM, Barry wrote: > > On 27 Jun 2025, at 12:32, olivares33561 via users > > users@lists.fedoraproject.org wrote: > > > > Dear Fedora users, > > > > I am strug

Re: script to loop through dates

2025-06-27 Thread Todd Zullinger
olivares33561 via users wrote: > On Friday, June 27th, 2025 at 8:52 AM, Todd Zullinger > wrote: >> olivares33561 via users wrote: >> >> I'm curious why you'd want the start date printed 4 >> times? > > I have high blood pressure (hypertension). I take two > readings in the morning, and two at aft

Re: script to loop through dates

2025-06-27 Thread olivares33561 via users
Sent from ProtonMail, encrypted email based in Switzerland. Sent with Proton Mail secure email. On Friday, June 27th, 2025 at 8:52 AM, Todd Zullinger wrote: > olivares33561 via users wrote: > > > It does not print start day four times. Almost there. > > > I'm curious why you'd want the s

Re: script to loop through dates

2025-06-27 Thread George N. White III
On Fri, Jun 27, 2025 at 8:32 AM olivares33561 via users < users@lists.fedoraproject.org> wrote: > Dear Fedora users, > > I am struggling to create a script that generates a series of dates with > special "+%Y.%m.%d" like the following > > 2025.06.01 > 2025.06.01 > 2025.06.01 > 2025.06.01 > 2025.06

Re: script to loop through dates

2025-06-27 Thread Todd Zullinger
olivares33561 via users wrote: > It does not print start day four times. Almost there. I'm curious why you'd want the start date printed 4 times? To do that, you'd want to move your for loop outside of the while loop, I think. Though there is, as usual, more than one way to do it. ;) I think t

Re: script to loop through dates

2025-06-27 Thread Todd Zullinger
olivares33561 via users wrote: > Dear Will, thanks for your help. I was able to do it. > The following does the job! > -- > #!/bin/bash > start=$1 > end=$2 > > start=$(date -d $(echo $start | sed 's/\./-/g') +%Y%m%d) > end=$(date -d $(echo $end | sed 's/\./-/g') +%Y%m%d) This is a minor imp

Re: script to loop through dates

2025-06-27 Thread Barry
> On 27 Jun 2025, at 12:32, olivares33561 via users > wrote: > > Dear Fedora users, > > I am struggling to create a script that generates a series of dates with > special "+%Y.%m.%d" like the following Do you know python? It would be a lot easier to solve using a small amount of python sc

Re: script to loop through dates

2025-06-27 Thread olivares33561 via users
Sent from ProtonMail, encrypted email based in Switzerland. Sent with Proton Mail secure email. On Friday, June 27th, 2025 at 7:43 AM, olivares33561 via users wrote: > > > > > Sent from ProtonMail, encrypted email based in Switzerland. > > Sent with Proton Mail secure email. > > > O

Re: script to loop through dates

2025-06-27 Thread olivares33561 via users
Sent from ProtonMail, encrypted email based in Switzerland. Sent with Proton Mail secure email. On Friday, June 27th, 2025 at 7:18 AM, olivares33561 via users wrote: > > > Sent from ProtonMail, encrypted email based in Switzerland. > > Sent with Proton Mail secure email. > > > On Frid

Re: script to loop through dates

2025-06-27 Thread Will McDonald
On Fri, 27 Jun 2025 at 12:32, olivares33561 via users < users@lists.fedoraproject.org> wrote: > I am struggling to create a script that generates a series of dates with > special "+%Y.%m.%d" like the following > > 2025.06.01 > 2025.06.01 > 2025.06.01 > > I found several examples but can't succeed

Re: script to loop through dates

2025-06-27 Thread olivares33561 via users
Sent from ProtonMail, encrypted email based in Switzerland. Sent with Proton Mail secure email. On Friday, June 27th, 2025 at 7:02 AM, Will McDonald wrote: > On Fri, 27 Jun 2025 at 12:32, olivares33561 via users > wrote: > > > I am struggling to create a script that generates a series of

Fw: Re: script to loop through dates

2025-06-27 Thread olivares33561 via users
Sent from ProtonMail, encrypted email based in Switzerland. Sent with Proton Mail secure email. --- Forwarded Message --- From: bruce Date: On Friday, June 27th, 2025 at 6:40 AM Subject: Re: script to loop through dates To: Community support for Fedora users > hi... > ok..

script to loop through dates

2025-06-27 Thread olivares33561 via users
Dear Fedora users, I am struggling to create a script that generates a series of dates with special "+%Y.%m.%d" like the following 2025.06.01 2025.06.01 2025.06.01 2025.06.01 2025.06.02 .. .. .. 2025.06.03 .. .. .. . Through 2025.06.30 Print four dates of June 1, then June 2, all the way thr

Re: script to loop through dates

2025-06-27 Thread bruce
hi... ok.. couple questions. does the test app need to use any given functions does the app need to have input values or attributes. if it does, what are they how familiar are u withe the date cmdline function, and using it in a bash script On Fri, Jun 27, 2025, 7:32 AM olivares33561 via use