History of Comments on 2021-01-25 Generating consecutive dates in Unix shell

2021-02-01
10:07 UTC Revision 1 . . . . 82.21.35.81You don't need the grep, just use the output formatting in date: for d in `seq 0 7 36`; do date -d "2020-01-05 $d days" +"%A%t%d-%m-%Y"; done . . .