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