Skip to content

ecix/fswatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

fswatch

A simple file watcher for the command line. It takes a path to watch and a command to execute when that file is changed (write events only), with the file name as the argument.

Installation

go get github.com/ecix/fswatch

Usage

# watch all files in a directory `mydir` and print their names on change
fswatch -dir mydir -cmd echo
# alternatively omit the command and use a pipe
fswatch -dir mydir | cat

Please not when you use the piping option a newline will be appended to the name of the file.

Contributors

Written by Veit Heller of Port Zero on behalf of ecix.


Have fun!

About

Run things when stuff changes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages