4 ms·
http://eradman.com/entrproject/ http://eradman.com/entrproject/ find . -name "*.go" | entr -r go run my/main/file.go
by leetrout 5y ago
http://eradman.com/entrproject/ http://eradman.com/entrproject/
find . -name "*.go" | entr -r go run my/main/file.go
- thewakalix 5y agoThat can’t handle file creation after the command is run, though, right?
- gavinray 5y agoI'm not sure about "find" -- but I also use "entr" for this (and just about a billion other tasks, is there anything you can't use it for?) and I personally do something like: ls src/**/*.filetype | entr -r -s "some command" And this will catch new files
- maleldil 5y ago`man entr` has an example for dealing with new files using the `-d` option: $ while true; do ls src/*.rb | entr -d make; done