<div dir="ltr"><div>Because actual size of a file is part of the detailed statistics of the actual file, NOT of the disk. Thus 'stat' is the tool that does that job. <br><br></div>You can stat a directory, you do not need to have awk sum things up for you.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Apr 5, 2014 at 6:58 PM, Mike Miller <span dir="ltr"><<a href="mailto:mbmiller+l@gmail.com" target="_blank">mbmiller+l@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Sat, 5 Apr 2014, David Wagle wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
why it violates the unix philosophy - in my mind - is that apparent size has nothing to do with he primary function of du - which is to display disk usage. And the unix philosophy is to do one thing and do it well.<br>
<br>
the apparent size flag for du is trying to get du to do things that other utilities already do.<br>
</blockquote>
<br>
<br></div>
Do you mean like find + xargs + awk working in combination...<div class=""><br>
<br>
$ find miller -print0 | xargs -0 stat --format=%s | awk '{sum+=$1}END{print sum}'<br>
145159848954<br>
<br></div>
...(adding a for loop to deal with a list of directories), or do you mean that some utility actually does this?<br>
<br>
What was wrong with my argument about the space that would be used on a tape if the files were to be written to tape via tar command?<br>
<br>
What was wrong with my argument about the size of the files on a compressed disk?<div class="HOEnZb"><div class="h5"><br>
<br>
Mike<br>
______________________________<u></u>_________________<br>
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<br>
<a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a><br>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/<u></u>mailman/listinfo/tclug-list</a><br>
</div></div></blockquote></div><br></div>