From: zahn@informatik.hu-berlin.de (Steffen Zahn)
Subject: fragmentation summarizer for directory trees
Reply-To: zahn@informatik.hu-berlin.de (Steffen Zahn)
Organization: The Internet
Date: Mon, 12 Oct 1992 17:41:39 GMT


Hello,

I edited frag.c from Werner Almesberger and added directory reading capabilities, 
now you can summarize full directory trees, i.e. `frag /usr' will
visit all files below /usr and will print a summary at the end.

table
 !"#$%&'()*+,-./0123456789:;<=>?
@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_
begin 644 frag.c.Z
M'YV0"EZH &%&3I@S+L: : %B3IHV<-B4(6CP3)LR;NB$H9/FC1L08]"4&;.Fz
MC!P0*EXH4# BC9LQ;.J0F<AC#ATR'5V@\<'2)4R9-.NX26.3C$Z>+5_&G F"y
MAYDQ&=D<[:D4:%,V#]/0F3,UZ4^F-6]B%=/5YU*:-N6X1+B3ZE>:..5@I%.Vx
M*M@Y>>:\L+EQZLH1,\VXG&@DB9 F0:" B+%2 9T\<,H$;DA'3ITQ=$!,T4BRw
MB,0V(/8H $&:LF7,FCFO\5P&M HQ84C*-<,"I9LR>.CL&%TZ9)B3;L)<W.(Dv
M2),B7Q!CZ;*[-$@TOT'$_3*G#,;=?5+'7OUYMX+-VUF[IO,&#H@>()Q48<+$u
MNP([;]*0D4YTS&\R*$# EP\BA0+1SH'7V6<H57<>".3!T5QI:9B1GX$]H*<>t
M>_TID(!<=-0AQT<+DI;@@=6UX,-MN75(D74H5)<"=BOM-Q\<=<R!1GX"<M<:s
M2@U-Y!^ I1DH(@@D9H9>@B9^B%YU+"K@VTDJP"'#'#2J)EZ!9=2V)$IP;(1&r
MA3R2=J4*<YC8X(-EB B;;&68$4(/$S+17V@69DG'EN@Y"66.9FXW6VUR;KFBq
MA6."T.<6+<30Q9HGO'!"A0DXUZ26*ZQP8*(GF-@';Z3- 6*9(PI7AHEWH)&&p
M1/F!R>BC<T9Z()B1FHBAAA_UF>27?3Y9693A$0AFE<]%AZJ?_V&*$@IVDLFGo
MEOVET ,,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