How to use commands, cal
, sed
and tr
and the pipe to display the numerical days (e.g., 1, 2, 3, etc.) of a month, with each day on a separate line
I've tried:
cal 12 2015| sed '3,7p' | tr -cs "[:alpha:]" "[\n*]"
and go this output:
December
S
M
Tu
W
Th
F
S