how to know size of a file

Thomas de Roo at
Tue Jul 1 01:22:47 PDT 2003

On Tue, 1 Jul 2003, layman wrote:
> how do i store it directly in a variable (bash),
> f=cat filename | wc -c
> does not help me

What about:

f=`du -s filename | cut --fields=1`
echo $f

Unsubscribe: send email to listar at
and put 'unsubscribe blfs-support' in the subject header of the message

More information about the blfs-support mailing list