Takes a list of files and directories to watch as arguments, watches them. Exits on modification or deletion. Useful for automatically running make, or other processes that produce artifacts.
while ./watchme . ; do
make clean all
done
Requires one of