Hacker News new | ask | show | jobs
by Nick_C 4914 days ago
This might be quicker than firing up a shell script:

> lc /dir" will count the number of files in /dir

  find /dir -type f -maxdepth 1 | wc -l
> and "lc /dir/*" will count the files in subdirectories of /dir.

  find /dir -type f -mindepth 2 | wc -l