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)
echo `cal | wc -w ` - 9 | bc
echo $(exp… Unknown -
better (and somewhat faster):
echo $(expr `cal | wc -w ` - 9)