move function loop_this to a bash command