You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
229 B

3 years ago
#!/usr/bin/env bash
START=$(date --date="20190101" +%s)
LEN=$(date +%j)
for INTDATE in $(seq $LEN)
do
DELTA=$(( INTDATE*86400 ))
TIME=$(( START+DELTA ))
DATE=$(date --date="@${TIME}" +%Y%m%d)
mkdir $DATE
done