Skip to content

Instantly share code, notes, and snippets.

View cwdcwd's full-sized avatar
:shipit:
Back to building real things

CWD cwdcwd

:shipit:
Back to building real things
View GitHub Profile
@cwdcwd
cwdcwd / watch.sh
Created October 1, 2016 02:01 — 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...>
#