miscutils/newp

6 lines
203 B
Plaintext
Raw Normal View History

#!/bin/sh
[ $# -eq 0 ] && echo '?' && exit 1
fname=$(date +%Y%m%d)-$(echo $* | tr 'A-Z\t ' a-z- | tr -s -).ms
printf ".TL\n%s\n.AU\nadolfopa@{sdf,sdfeu,twenex}.org\n\n" "$*" >$fname
${EDITOR:-ed} $fname