Re: Filesize of a particular file

2002-09-23 Thread Asish Balakrishnan
On Sun, 22 Sep 2002, Ed Wilts wrote: hi, it is possible to know the size of file by simply typing the command ls -s filename. regards, Balakrishnan Asish > On Sun, Sep 22, 2002 at 06:49:06PM +0200, Michael Pahle wrote: > > Hi! > > > > 'df' is for disks !? > > 'du' is for directories !? > > >

Re: Filesize of a particular file

2002-09-22 Thread Gordon Messmer
> On Sun, Sep 22, 2002 at 06:49:06PM +0200, Michael Pahle wrote: > > Hi! > > > > 'df' is for disks !? > > 'du' is for directories !? > > > > How can I get the size of a particular file? 'du' will show the space used for a file the same as it shows space used for a directory. 'ls -l' is the oth

Re: Filesize of a particular file

2002-09-22 Thread Ed Wilts
On Sun, Sep 22, 2002 at 06:49:06PM +0200, Michael Pahle wrote: > Hi! > > 'df' is for disks !? > 'du' is for directories !? > > How can I get the size of a particular file? $ size=`stat -t $filename | cut -f 2 -d ' '` $ echo $size -- Ed Wilts, Mounds View, MN, USA mailto:[EMAIL PROTECTED] Memb

Re: Filesize of a particular file

2002-09-22 Thread Hal Burgiss
On Sun, Sep 22, 2002 at 06:49:06PM +0200, Michael Pahle wrote: > Hi! > > 'df' is for disks !? > 'du' is for directories !? You can use du for files too. > How can I get the size of a particular file? > I want to write the size of a particular file in a $variable. wc -c ? ie cat $file |wc -c