Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
— |
count [2009/07/27 17:42] (aktuell) |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== Count files recursively in a directory ====== | ||
+ | |||
+ | *Using Linux, to get the number of files in the current directory, use: | ||
+ | |||
+ | ls -1 | wc -l | ||
+ | |||
+ | *To count the number of files recursively in the current and all directories below it, use: | ||
+ | |||
+ | find . -type f | wc -l | ||