count from file output
January 12, 2011 at 11:39 am | Posted in ubuntu | Comments Off on count from file outputTags: shell, tips
cat file | cut -f 1 | awk ‘{tot=tot+$1} END {print tot}’
Create a free website or blog at WordPress.com.
Entries and comments feeds.