[geeks] find - having a senior moment
    John Francini 
    francini at mac.com
       
    Mon Jan 14 14:49:39 CST 2008
    
    
  
Actually, GNU du will let you use:
-b, --bytes		report sizes in (allocated) bytes
-B, --block-size=SIZE	use SIZE-byte blocks (use --block-size=1 for  
same effect as -b)
--apparent-size	report sizes in written bytes -- size may be larger  
than allocated "due to holes in ('sparse') files, internal  
fragmentation, indirect blocks, and the like"
BSD du will respect the value of the BLOCKSIZE environment variable.
Dunno about Solaris.
j
On 14 Jan 2008, at 15:37, Brian Dunbar wrote:
>> du (1) is your friend here.
>>
>> j
>>
>
> It could be - but du (or so it seems to say in man) reports file  
> sizes in
> k.  I can use that but I'd really like the disk space in bytes.
>
> Why?  It makes the math easier in the rest of the script.
>
> brian
> _______________________________________________
> GEEKS:  http://www.sunhelp.org/mailman/listinfo/geeks
    
    
More information about the geeks
mailing list