How can we display no of days in a month using shell script?
Answers
Answered by
1
Explanation:
Assigning number of days in the month to a variable
In the shell, I can use the command: cal `date +%m` `date +%Y`| grep -v '' | wc -w to give me the number of days in the month, but when I assign it to a variable: VAR=`cal `date +%m` `date +%Y`| grep -v '' | wc..
Here is your answer
Answered by
0
Answer:
date:+ ,month:% ,year:Y
Similar questions