Andrey A. MINEEV wrote:
Как в bash узнать, сколько дней в месяце?

date -d "4/1 next month yesterday" +%d
date -d "Apr next month yesterday" +%d

--
As Will Rogers would have said, "There is no such things as a free variable."

Ответить