HOME/bin/file_change_monitor
frankdelange ecd79740fd Add ~/bin
2022-06-26 20:20:31 +02:00

7 lines
147 B
Bash
Executable file

#!/bin/sh
[ "$1x" = "x" ] && exit 1
while : ; do mv -f /tmp/fcm-1 /tmp/fcm-2; cp $1 /tmp/fcm-1; diff -U 0 /tmp/fcm-1 /tmp/fcm-2; sleep 1; done