Loop simples da shell. Mais informações: https://manned.org/while.
while read line; do echo "$line"; done
while :; do {{comando}}; sleep 1; done