how to know size of a file

Thomas de Roo thomas.de.roo at hccnet.nl
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

Groeten,
Thomas
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message



More information about the blfs-support mailing list