 <p>To get you started, here is my script to order today's lunch from our local canteen:</p> <pre><code>URL="https://lunch.com/lunch/cgi-bin/order.cgi" O="order=Order" A="amount_%d=%%d&amp;amount_foil_container_%d=%%d" function order_lunch() { if [[ -n "$@" ]]; then curl -u "$USER":"$PASSWORD" \ -d $(printf $(printf "$O&amp;$A&amp;$A&amp;$A&amp;$A" 0 0 1 1 2 2 3 3) \ "${@:2:8}") \ "$URL"; else echo "Nothing to order."; fi; } </code></pre> <p>Where input is a string in the following format</p> <pre><code>2012-08-23 1 0 0 0 0 0 0 0 </code></pre> <p>where each field denotes a different dish, i.e. a 1 in the first position after the date is "1 pasta"</p> <p>Good luck.</p>