How to find size of a file

Hi,

I have to directory
/usr/inbound
-------------
10900.txt
10889.txt
109290202.txt

I need to create inbound directory
and i need to know size of these files one by one
if file size is zero i need to print message like "empty file"

Please help me how to solve this

thanks
krish.

the "du" and the "ls -l" command give you information about the size of a file. you can also work with "find" to find files that are 0 bytes in size...

I need to know file size one bye one
/usr/inbound
-------------
10900.txt assume 2k
10889.txt 0k
109290202.txt 0k

I need to know file one bye one,
take file names one by one and find size of each file and print the sizes

hope you understand my problem
please help me on this.

i understand your problem and give the solution above... read the "manpage" of the tools and find the tool that helps you out...

for example you can do a "du -sk *.txt" in the directory your files are located. to print the mentioned message you need a little script... and it's your work to write this script, isn't it?

Hi
Thankyou
i got it.................it works fine