Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
How can I format the output of the command cal -y 2020 as a csv? I want to prepare the calendar in a table processor. Can this be done?
cal -y 2020
I am using Slackware 14.2.
cal 2020 | sed 's/ \([0-9]\) /\1 /g;s/ \([0-9]\)$/\1/g;s/ /,/g;s/,,,/,/g' > 2020.csv
Required, but never shown