miscutils/newp
Adolfo Perez Alvarez 7dcf64ef11 Add newp (new post) and ts (shell test) tools
newp is a dump shortcut that will create a new ms article.

ts is a tool similar to cram or tush.
2022-10-04 14:22:52 +00:00

6 lines
203 B
Bash
Executable File

#!/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