count from file output

January 12, 2011 at 11:39 am | Posted in ubuntu | Comments Off on count from file output
Tags: ,

cat file | cut -f 1 | awk ‘{tot=tot+$1} END {print tot}’

Blog at WordPress.com.
Entries and comments feeds.