eureka/tw.sh

16 lines
198 B
Bash
Raw Normal View History

#!/bin/sh
twtxt=../www/twtxt.txt
twt(){
self=$(mktemp)
new=$(mktemp)
echo "$(date -Is)\t$@" > ${self}
cat ${self} ${twtxt} > ${new}
cp ${new} ${twtxt}
rm ${new}
rm ${self}
}
twt $@