Here's a hint: the
date utility will return the current (today) week number thus:
And,
Code:
date -d"04/15/2012" +%W
15
Another hint, there are 52 weeks in a year, in a loop set a variable starting at 1, stopping at 52; use that variable to print your strings.
Here's a simple example:
Code:
WEEK=1
while (( ${WEEK} <= 52 ))
do
echo -n "${WEEK} link_report?weeknr=${WEEK}&auto=vw "
echo -n "link_raport?weeknr=${WEEDK}&auto=audi "
echo -n "link_raport?weeknr=${WEEK}&auto=nissan "
echo "link_raport?weeknr=${WEEK}&auto=skoda"
(( WEEK=WEEK+1 ))
done
Hope this helps some.