Linux/Ubuntu: fswatch: watch file changes in folder

PHOTO EMBED

Mon Aug 29 2022 19:18:49 GMT+0000 (UTC)

Saved by @marcopinero

fswatch -r --event=Created --event=Updated --event=Renamed --format=%p -0 MYFOLDER/ | xargs -0 -n1 -I{} mycommand "{}"
content_copyCOPY

fswatch -r --event=Created --event=Updated --event=Renamed --format="%p %f" -0 SYSTEM/ | xargs -0 -n1 -I{} echo "{}"