Bash: Custom watch functionality