Skip to content

Instantly share code, notes, and snippets.

View J-Lmb's full-sized avatar

Joseph Lumbahe J-Lmb

View GitHub Profile
@J-Lmb
J-Lmb / watch.sh
Created July 26, 2018 11:25 — forked from mikesmullin/watch.sh
watch is a linux bash script to monitor file modification recursively and execute bash commands as changes occur
#!/usr/bin/env bash
# script: watch
# author: Mike Smullin <mike@smullindesign.com>
# license: GPLv3
# description:
# watches the given path for changes
# and executes a given command when changes occur
# usage:
# watch <path> <cmd...>
#