shithub: snippets

ref: f6dbc2ae6e153c5608b6f9d893238d71ae521935

View raw version
#!/bin/rc
# calls a command every second, replacing its output with the new one

rfork ne
a0=''
while(){
	a=`"{$*}
	echo -n $a0 | tr -c '' '\x08'
	echo -n $a
	a0=$a
	sleep 1
}