count from file output

January 12, 2011 at 11:39 am | Posted in ubuntu | Comments Off
Tags: ,

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

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.

Follow

Get every new post delivered to your Inbox.