Skip to content

Instantly share code, notes, and snippets.

@valvallow
Last active April 23, 2018 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save valvallow/3a4b6429cf2350fa03181fb21f084e27 to your computer and use it in GitHub Desktop.
Save valvallow/3a4b6429cf2350fa03181fb21f084e27 to your computer and use it in GitHub Desktop.
year progress
seq -w 00 99 | sed -e "1,$(echo "scale=2;" \(\($(date +%s) - $(date -d $(date +%Y)-01-01 +%s)\) / 86400\) / 365 | bc | sed -e 's/^\.//g')s/.*/ /g" -e 's/ /■/g' -e 's/ //g' -e 's/[0-9][0-9]/□/g' | tr '\n' ' ' | sed -e 's/ //g';echo -n ' ';echo "scale=2;" \(\($(date +%s) - $(date -d $(date +%Y)-01-01 +%s)\) / 86400\) / 365 | bc | sed -e 's/^\.//g' -e 's/$/%/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment