#set -x . /etc/dvd-scripts.env DVD_DIR=$1 MAX_DVD_SIZE=4702989182 # DVD-Size 4,702,989,182 size=`du -sb "$DVD_DIR" | awk '{print $1}'` printf "Größe: %4d MB\n" `expr $size \/ 1024 \/ 1024` if [ $size -gt $MAX_DVD_SIZE ] then printf "zu Groß (max %4d MB)\n" `expr $MAX_DVD_SIZE \/ 1024 \/ 1024` else echo Paßt. fi