Unix challenges

Have fun! Submit new challenges and solutions to old ones to unix@current_domain. You should replace current_domain with enpo.no :)

Challenge 2: Find weekday of date

2018-08-26 19:25:37 — Adrian Kjær Dalhaug

By providing a date on format YYYY-MM-DD, the program should output the weekday as an integer from 1-7 (1=Monday, 7=Sunday).


$ ./solution.sh 2018-01-01