|
|
| Welcome to the Monastery | |
| PerlMonks |
Re: how to get total numbers of files in a directory?by delirium (Chaplain) |
| on Dec 09, 2003 at 08:43 UTC ( [id://313409]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
This code should do what you want: perl -le 'print scalar @{[</home/a/*.txt>]}' Welcome to the forum!
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||