Skip to content

Instantly share code, notes, and snippets.

@henriksommerfeld
Created August 10, 2022 11:23
Show Gist options
  • Save henriksommerfeld/c3e522bc05852afc38f7e426a431de68 to your computer and use it in GitHub Desktop.
Save henriksommerfeld/c3e522bc05852afc38f7e426a431de68 to your computer and use it in GitHub Desktop.
#!/bin/sh
while inotifywait file.txt -e close_write; do { echo "test"; }; done
# trigger with echo '' > file.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment