diff --git a/bin/watchbatch b/bin/watchbatch new file mode 100755 index 0000000..9656839 --- /dev/null +++ b/bin/watchbatch @@ -0,0 +1,7 @@ +#!/usr/bin/env sh +todo=$(cat) + +inotifywait --recursive --monitor -e create -e attrib -e modify -e move -e delete -- "$@" | \ +while read -r _unused; do + eval "$todo" +done