Wednesday, January 12, 2011

count from file output

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

No comments:

Post a Comment

You can leave any question here and I will make a response to you ASAP. :D