indarkness
April 30th, 2010, 06:52 AM
Hi, I have a little question.
I need to know the size of a directory, and the number of element that it has got.
I've proved with stat which shows the size of the dir,but that function shows me more what i need, and i've thoutgh to use "cut" to delete the colums i don't need.
To show the number of elements in te directory, how can i do? I know i cojos use "ls",but i only want the number of element not a list of them.
Thanks
I need to know the size of a directory, and the number of element that it has got.
I've proved with stat which shows the size of the dir,but that function shows me more what i need, and i've thoutgh to use "cut" to delete the colums i don't need.
To show the number of elements in te directory, how can i do? I know i cojos use "ls",but i only want the number of element not a list of them.
Thanks