0
find dirlocation -type d | while read dir; do
count=$(find "$dir" -type f | wc -l)
echo "$dir ; $count"
done
這個腳本在Linux環境下工作正常,但是當我在Solaris上運行這個腳本時,消息是Variable語法。任何人都可以幫我解決這個問題嗎?如何使用Solaris腳本對目錄中的文件進行計數?
謝謝兄弟它正在工作... – user3589313