|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re: how to get total numbers of files in a directory?by delirium (Chaplain) |
| on Dec 09, 2003 at 13:43 UTC ( [id://313409]=note: print w/replies, xml ) | Need Help?? |
|
This code should do what you want: perl -le 'print scalar @{[</home/a/*.txt>]}' Welcome to the forum!
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||