watch.sh
A simple bash script for macOS that runs a command
and displays a notification when the output of the command changes.
To use it:
1. Save the script to a file (e.g., watch in /usr/local/bin)
2. make it executable (chmod +x watch.sh)
3. Run it with the command you want to watch as the argument. You can optionally specify a sleep time in seconds as the second argument (defaults to 3).
评论
?
参与讨论