bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Only one Friday 13th coming in 2016


From: Allodoxaphobia
Subject: Re: Only one Friday 13th coming in 2016
Date: 21 Dec 2015 14:59:20 GMT
User-agent: slrn/1.0.2 (FreeBSD)

On Sun, 20 Dec 2015 23:59:32 -0500, Bill Duncan wrote:
> We had 3 this year..
>
> $ for y in {1950..2050} ; do for m in {1..12};do cal $m $y|awk 
> 'FNR==1{m=$0}/^ 1/{print m}';done;done| awk '{a[$2]=a[$2]" "$1}END{for (i in 
> a) print i,a[i]}'| sort| awk '{t=$1;$1="";a[$0]=a[$0]" "t}END{for (i in a) 
> printf "%-24s %s\n", i, a[i]}' | sort | cat -n
>
>      1   April July               1951 1962 1973 1979 1990 2001 2007 2018 
> 2029 2035 2046
>      2   August                   1954 1965 1971 1982 1993 1999 2010 2021 
> 2027 2038 2049
>      3   February August          1976 2004 2032
>      4   February March November  1953 1959 1970 1981 1987 1998 2009 2015 
> 2026 2037 2043
>      5   January April July       1956 1984 2012 2040
>      6   January October          1950 1961 1967 1978 1989 1995 2006 2017 
> 2023 2034 2045
>      7   June                     1952 1958 1969 1975 1980 1986 1997 2003 
> 2008 2014 2025 2031 2036 2042
>      8   March November           1964 1992 2020 2048
>      9   May                      1955 1960 1966 1977 1983 1988 1994 2005 
> 2011 2016 2022 2033 2039 2044 2050
>     10   October                  1972 2000 2028
>     11   September December       1957 1963 1968 1974 1985 1991 1996 2002 
> 2013 2019 2024 2030 2041 2047
>
>
> Happy Holidays, Happy New Year in 2016 and thanks for being involved with 
> such a great shell!

heh...  The eyes boogle.  :-)
Is the logic exhaustive ? -- in that it shows there 
are no years with *no* Friday The 13Th's?

Holiday Cheer to you, as well!
Jonesy
-- 
  Marvin L Jones    | Marvin      | W3DHJ.net  | linux
   38.238N 104.547W |  @ jonz.net | Jonesy     |  FreeBSD
    * Killfiling google & XXXXbanter.com: jonz.net/ng.htm



reply via email to

[Prev in Thread] Current Thread [Next in Thread]