3 ms·
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
by Nick_C 14y 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