Ich kann noch mit PHP auf der Kommandozeile dienen:

php -r 'for ($i = strtotime(date("Y-01-01")), $end =  
strtotime(date("Y-12-t", $i)); $i <= $end; $i += 86400) if (date("w",  
$i) == 3 && (ceil(date("d", $i) / 7) % 2 == 0)) echo date("Y-m-d", $i)  
. "\n";'


Zitat von "[email protected]" <[email protected]>:

> Am 08.11.10 12:41, schrieb Thomas Köhler:
>> Vielleicht ist ja auch einfach "date" das falsche Tool für den
>> Zweck und cal hilfreicher?
> Oder gcal mit awk?
>
> gcal 11 2010 | gawk '/Wednesday/ {print $3 " " $5}'
>
> Auf ein ganzes Jahr bezogen:
>
> for i in `gseq 1 1 12`
> do
>     echo $i
>     gcal $i 2011 | gawk '/Wednesday/ {print $3 " " $5}'
>     echo ""
> done
>
> Stefan
>
> .
>
>
> _______________________________________________
> Lug-dd maillist  -  [email protected]
> https://ssl.schlittermann.de/mailman/listinfo/lug-dd
>





_______________________________________________
Lug-dd maillist  -  [email protected]
https://ssl.schlittermann.de/mailman/listinfo/lug-dd

Antwort per Email an