#!/bin/sh
echo Content-type: text/plain
echo
if [ "${QUERY_STRING}" != "" ]; then
   du ~ | sort -rn | head -${QUERY_STRING}
else
   du ~ | sort -rn
fi