Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

cal Unix tool

📅 2020-Mar-22 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ ⬩ 📚 Archive

cal is a classic Unix utility, available since the earliest versions of Unix. It can be used to display the calendar of one or more months at the shell. Its output format has remained the same since its introduction so you can also parse and use it in your scripts.

$ cal
$ cal -1
$ cal -3
$ cal -y
$ cal 1947
$ cal 8 1947

Tried with: Ubuntu 18.04