How do I specify file extensions to be monitored when using inotifywait ?
Given this code
cd "tmp"
inotifywait -me close_write --format %f . | while read file
do rclone move "$file" …
done
Where to add the file extensions in the code? I tried replacing
--format %f .
with
--format %f *.tmp,*.tmp2
But still doesnt work as intended