[Gambas-user] OT: Sometimes I wonder...

Tobias Boege taboege at ...626...
Sun Feb 23 13:14:15 CET 2014


On Sun, 23 Feb 2014, Tobias Boege wrote:
> On Sun, 23 Feb 2014, Bruce wrote:
> > ... if I may be getting a little bit obsessive/compulsive.
> > 
> > :-)
> > B
> 
> Oh boy...
> 
> $ find -name .project | xargs dirname | xargs du -hs | awk 'BEGIN{t=0;FS="K";} {t+=$1;} END{print t " KiB";}'
> 24355.3 KiB
> 
> (Don't know if it counts correctly, though, but it feels correct...)
> 

Aha! I should practice the shell more often:

$ find -name .project | xargs dirname | xargs du -hcs | tail -n1
55M     total

That's 1/20...

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk




More information about the User mailing list