我在 bash 中有以下代码和平
inotifywait -r -m -e modify -e moved_to -e moved_from -e move -e move_self -e create -e delete -e delete_self $list_of_folders |
while read path action file; do
message=$myip%0A$action%0A$path$file
message
done
我不知道如何从名为“logs.txt”和“.git”文件夹的监视文件中排除,任何人都可以解释排除在 inotifywait 中的工作原理吗?
ps logs.txt 和 .git 文件夹,可能在任何位置,我不知道具体在哪里