Computer Science, asked by kartikmani1901, 9 months ago

How can we display no of days in a month using shell script?

Answers

Answered by MithraShree
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 hk1194949
0

Answer:

date:+ ,month:% ,year:Y

Similar questions