[Typo3-debian] OT/newbie: number of file in dir

Michael Stucki mundaun at gmx.ch
Thu Jun 12 16:34:09 CEST 2003


Hi Luite,

> but how to retrieve the number of files... hm... never actually did that
> before!

- list one file per line: 'ls -1 $mydir'
- pass the result to word-count and count the lines: 'wc -l'

Result: 'ls -1 $mydir | wc -l'

:-)

Cheers - michael



More information about the TYPO3-debian mailing list