Hacker News new | ask | show | jobs
by navigaid 2540 days ago
You can use this bash one-liner to enumerate all same-calendar-years of 2019 between 1900 and 2100.

  $ printf '%d\n' {1900..2100} | while read year; do printf "$year %s\n" $(cal $year | sed 1d | md5sum | cut -d ' ' -f 1) ; done | grep "$(cal 2019 | sed 1d | md5sum | cut -d ' ' -f 1)" | cut -d ' ' -f 1 | xargs
  1901 1907 1918 1929 1935 1946 1957 1963 1974 1985 1991 2002 2013 2019 2030 2041 2047 2058 2069 2075 2086 2097