Hacker News new | ask | show | jobs
by branweb 2734 days ago
yep...specifically, use the -d flag in a loop since all it does it exits the process when a new file is added:

  while true; do ls -d src/*.c | entr -d <cmd>; done