bash oneliner: generate timestamps for this year
To add partitions to some hive tables I need the YYYYmmdd timestamp of every day from today until the end of the year.
for i in $(seq 0 $(( $(date -d $(date +%Y)-12-31 +%j) - $( date +%j) )) ); do date +%Y%m%d -d "+$i day"; done
Site sections
Social media links
Ignacio Torres Masdeu cc-by-nc-sa 1999-2025