16 lines
198 B
Bash
16 lines
198 B
Bash
|
#!/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 $@
|