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.
This commit is contained in:
2022-10-04 14:16:59 +00:00
parent 7c59191590
commit 7dcf64ef11
5 changed files with 99 additions and 1 deletions

5
newp Executable file
View File

@@ -0,0 +1,5 @@
#!/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