Чтобы найти количество файлов в каталоге, не содержащем .x.pdf, попробуйте:
find "${Destination}" -mindepth 1 ! -name '*.x.pdf' -printf '1' | wc -c
Чтобы найти количество файлов в каталоге, не содержащем период - один или несколько x - period - pdf, try:
find "${Destination}" -mindepth 1 ! -regex '.*\.x+\.pdf' -printf '1' | wc -c
Вышеуказанный поиск рекурсивно через подкаталоги. Если вы этого не хотите, добавьте опцию -maxdepth 1. Например:
find "${Destination}" -mindepth 1 -maxdepth 1 ! -regex '.*\.x+\.pdf' -printf '1' | wc -c
Обратите внимание, что, поскольку мы используем -printf '1', этот метод безопасен, даже если каталог содержит файлы, имена которых содержат символы новой строки.
Из man 8 mount:
Command-line options available for the mount command are:
-a, --all
Mount all filesystems (of the given types) mentioned in fstab
(except for those whose line contains the noauto keyword). The
filesystems are mounted following their order in fstab.
В вашей записи fstab есть ключевое слово noauto.
Из man 8 mount:
Command-line options available for the mount command are:
-a, --all
Mount all filesystems (of the given types) mentioned in fstab
(except for those whose line contains the noauto keyword). The
filesystems are mounted following their order in fstab.
В вашей записи fstab есть ключевое слово noauto.
Из man 8 mount:
Command-line options available for the mount command are:
-a, --all
Mount all filesystems (of the given types) mentioned in fstab
(except for those whose line contains the noauto keyword). The
filesystems are mounted following their order in fstab.
В вашей записи fstab есть ключевое слово noauto.