#!/bin/sh
inotifywait -qme CREATE --format '%w%f' /tmp/watch | while read f;
do
ln -s "$f" /tmp/other/;
done
我发现这个脚本正在寻找对执行特定工作的文件系统事件做出反应的东西。该脚本完美运行我不明白的是while read f的含义;
#!/bin/sh
inotifywait -qme CREATE --format '%w%f' /tmp/watch | while read f;
do
ln -s "$f" /tmp/other/;
done
我发现这个脚本正在寻找对执行特定工作的文件系统事件做出反应的东西。该脚本完美运行我不明白的是while read f的含义;