How many days in the current month?

echo `cal | wc -w ` - 9 | bc


Comments:

better (and somewhat faster):

echo $(exp… Unknown -

better (and somewhat faster):

echo $(expr `cal | wc -w ` - 9)

Next
Previous

Related