Version Control Software

Lele Gaifax lele at metapensiero.it
Sun Jun 16 11:48:31 EDT 2013


Roy Smith <roy at panix.com> writes:

> In article <mailman.3442.1371389433.3114.python-list at python.org>,
>  Chris Kwpolska Warrick <kwpolska at gmail.com> wrote:
>
>> (I€™m using wc -c to count the bytes in all files there are.  du is
>> unaccurate with files smaller than 4096 bytes.)
>
> It's not that du is not accurate, it's that it's measuring something 
> different.  It's measuring how much disk space the file is using.  For 
> most files, that's the number of characters in the file rounded up to a 
> full block.

I think “du -c” emits a number very close to “wc -c”.
-------------- next part --------------

ciao, lele.
-- 
nickname: Lele Gaifax | Quando vivr? di quello che ho pensato ieri
real: Emanuele Gaifas | comincer? ad aver paura di chi mi copia.
lele at metapensiero.it  |                 -- Fortunato Depero, 1929.


More information about the Python-list mailing list