blob: 4fb701f0977fab824ee4f0d662b1a3358ce1a6af (
plain) (
blame)
1
2
3
4
5
6
7
8
|
#!/bin/sh
inotifywait -r -m "$1" -e create -e moved_to |
while read -r path action file; do
echo "The file '$file' appeared in directory '$path' via '$action'"
done
# vim: expandtab sw=2 ts=2
|