Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: count file in directory

by johngg (Abbot)
on Sep 04, 2013 at 09:42 UTC ( #1052273=note: print w/replies, xml ) Need Help??

in reply to count file in directory

If you follow hdb's advice you will see that you have two files and two entries called '.' and '..' which are links to the current and parent directories respectively. All directories contain those two entries so you will always see two more items than you might expect.



Replies are listed 'Best First'.
Re^2: count file in directory
by joaase (Initiate) on Sep 04, 2013 at 10:48 UTC
    Thank JohnGG. That explain why i see 4 count insted of 2. /Joakim

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1052273]
[Lady_Aleena]: I'm glad I've sort of learned command line grep so I can find where and how I've used this sub.
[Lady_Aleena]: Having to rewrite some parts of my site for mobile devices is such a pain in the butt.

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2017-04-27 11:58 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (504 votes). Check out past polls.