Is it possible in Linux command line to have a command repeat every n seconds?
Say, I have an import running, and I am doing
ls -l >
ls -l
sleep already returns 0. As such, I'm using:
sleep
0
while sleep 3 ; do ls -l ; done
This is a tiny bit shorter than mikhail's solution. A minor drawback is that it sleeps before running the target command for the first time.