[Techtalk] real life kewl text-processing and regexps samples wanted

R. Daneel Olivaw linuxchix at r-daneel.com
Sat Jan 10 03:42:54 EST 2004


Hi there,

> On Friday 09 January 2004 18:03, Carla Schroder wrote:
> > So let's have 'em, and don't be shy.
> 
> One I find myself using quite a bit:
> 
> |awk '{t+=$1}END{print t}'
> 
> Prints the total of numbers in column 1.  Useful for things like the 
> output of du(1).

you should try 'du -c' or 'du --total', this sums it all up ;)

bye,

R. Daneel Olivaw,
The Robot Inside.


More information about the Techtalk mailing list