Re: Number of working days in given month

2009-07-01 Thread mike
Rob Gom wrote: Hi there, do you know any command line tool which would be able to display number of working days in given month in given country? I have found gcal, which suits my needs, but is barely maintained (last release in 2000) and I'm afraid about its possible removal (currently maintaine

Re: Number of working days in given month

2009-07-01 Thread Daniel Burrows
On Wed, Jul 01, 2009 at 09:27:49AM +0200, Rob Gom was heard to say: > Hi there, > do you know any command line tool which would be able to display > number of working days in given month in given country? > I have found gcal, which suits my needs, but is barely maintained > (last release in 2000)

Re: Number of working days in given month

2009-07-01 Thread Rob Gom
> > 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

Re: Number of working days in given month

2009-07-01 Thread Todd A. Jacobs
On Wed, Jul 01, 2009 at 09:27:49AM +0200, Rob Gom wrote: > Hi there, do you know any command line tool which would be able to > display number of working days in given month in given country? I have The shell is your friend. If your needs are simple, this will do: cal | FIELDWIDTHS=2 aw

Re: Number of working days in given month

2009-07-01 Thread Ron Johnson
On 2009-07-01 02:27, Rob Gom wrote: Hi there, do you know any command line tool which would be able to display number of working days in given month in given country? I have found gcal, which suits my needs, but is barely maintained (last release in 2000) and I'm afraid about its possible removal