Installing watch with brew on MacOS

watch is a useful utility to execute a command on a timed basis, and exists in many Linux shells.

To install on MacOS with brew:

brew install watch

To repeat a command:

watch -n 1 somecommand

… to repeat the command every 1 second

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.