eureka/tw.sh

15 lines
198 B
Bash
Executable file

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