#!/bin/sh # Brot bestellen, per email als Vorlage # basic variables / text day=$(date +%e) #$(($DAY = $DAY + 1)) date="$(($day + 1))$(date +.%m.%y | sed 's/^\.0/\./')" tmpfile="/tmp/brot-tmp-bestellung.txt" subject="Bestellung fuer morgen $date" msg="Hallo,\nich wuerde gerne folgendes fuer morgen $date bestellen:\n\n 6x Broetlen gestaubt\n 6x Semmeln\n 7x Apfelplunder\n 8x Salzstangen\n\nDanke!\n \nAdresse\”zeile2 etc...\nzeile 3...." # save the message to a tmp file echo -e $msg > ${tmpfile} # create the email and start mutt neomutt -b "brot@archive.xxxxxxx.xyz" -s "$subject" -i ${tmpfile} -- "Gstreins Brot "