[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Number of working days in given month



>
> The shell is your friend. If your needs are simple, this will do:
>
>    cal |
>    FIELDWIDTHS=2 awk 'NR <= 2 {next}; {print $2, $3, $4, $5, $6}' |
>    wc -w
>
> Just replace the arguments to print with the days of the week you care
> about.
>

Thanks,
that would do it, unless I'm looking for holidays exclusion :)

Regards,
Robert


Reply to: