1
在這篇文章:Count files and directories using shell script,羅布麻給這個答覆是在2012年12月5日:什麼是在本例中使用的x變量命令如下
FILECOUNT="$(find . -type f -maxdepth 1 -printf x | wc -c)"
DIRCOUNT="$(find . -type d -maxdepth 1 -printf x | wc -c)"
誰能告訴我後-printf手段的X是什麼或用於?
謝謝。
這是另一種說法:'FILECOUNT =「$(find。-type f -maxdepth 1 | wc -l)」'...如果這有幫助... – devnull