?? pdf.sh
字號:
#!/bin/shwhile [ 1 ]dols>infile1sleep 15ls>infile2flag=1flag2=0for i in ` comm -23 infile2 infile1`do if [ "${i##*.}" = "pdf" ] || [ "${i##*.}" = "PDF" ] then flag=$(($flag-1)) if [ "$flag" -eq 0 ] then flag2=$(($flag2+1)) echo "The flowing pdf file(s) have been created in the last 15 seconds:" fi echo $i fidonefor i in ` comm -23 infile1 infile2`do if [ "${i##*.}" = "pdf" ] || [ "${i##*.}" = "PDF" ] then flag=$(($flag-2)) if [ "$flag" -eq -1 ] || [ "$flag" -eq -2 ] then flag2=$(($flag2-2)) echo "The flowing pdf file(s) have been deleted in the last 15 seconds:" fi echo $i fidoneif [ "$flag2" -eq 0 ] ; then echo "No pdf files have been created or removed in the last 15 seconds" fi#case "$flag2" in#1 && #fidone
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -