[linux] du - specialny parameter
Lubomir Host
rajo na platon.sk
Úterý Prosinec 6 17:00:16 CET 2005
On Tue, Dec 06, 2005 at 04:38:47PM +0100, Robert Simon wrote:
> >na gentoo to takto alebo
> >find . -type f ;du -s {} ci tak nejak robil kolega...
> >Peto
> >P.S. : netrvdim, ze som bol presny..
To, co clovek ten clovek chcel, elegantne riesi toto:
find . -maxdepth 1 -type f -printf "%s\n" | awk '{ sum += $1;} END
{print sum, "\n" }'
rajo
--
Lubomir Host 'rajo' <rajo AT platon.sk> ICQ #: 257322664 ,''`.
Platon Group http://platon.sk/ : :' :
Homepage: http://rajo.platon.sk/ `. `'
http://www.gnu.org/philosophy/no-word-attachments.html `-
Další informace o konferenci linux