3 ms·
#!/bin/bash year=2025 start="2025-01-01" end="2025-12-31" start_epoch=$(gdate -d "$start" +%s) end_epoch=$(gdate -d "$end" +%s)
by deafpolygon 1y ago
#!/bin/bash
year=2025
start="2025-01-01"
end="2025-12-31"
start_epoch=$(gdate -d "$start" +%s)
end_epoch=$(gdate -d "$end" +%s)
day_seconds=86400
for ((t = $start_epoch; t <= $end_epoch; t += $day_seconds)); do
gdate -d "@$t" "+%F w%V %a - " | tr '[:upper:]' '[:lower:]'
done