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
If the command contains some special characters such as pipes and quotes, the command needs to be padded with quotes. For example, to repeat ls -l | grep "txt", the watch command should be:
ls -l | grep "txt"
watch -n 5 'ls -l | grep "txt"'