Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: