Timeline for How do I count all the files recursively through directories
Current License: CC BY-SA 2.5
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 19, 2010 at 20:24 | comment | added | Gilles 'SO- stop being evil' |
Good idea taking hard links into account. Assuming GNU find, you don't need so many steps: find -printf '%i\n' | sort -u | wc -l. If you wanted to be portable, you'd need find . -exec ls -id {} + | cut … instead.
|
|
| Nov 19, 2010 at 19:42 | history | answered | mouviciel | CC BY-SA 2.5 |