how to know size of a file

layman layman82 at yahoo.com
Tue Jul 1 01:40:41 PDT 2003


thanks a lot

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

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-- 
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