[Gllug] Small shell script challenge

Richard Jones rich at annexia.org
Tue Dec 16 13:56:53 UTC 2003


Using something like:

ls -lR dir | awk '{print $5}' | ....

I can get a list of numbers (actually including some blank
lines). What's the quickest way to add up those numbers?

Rich.

-- 
Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
PTHRLIB is a library for writing small, efficient and fast servers in C.
HTTP, CGI, DBI, lightweight threads: http://www.annexia.org/freeware/pthrlib/
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list