The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Awk Hash Function.
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Awk Hash Function.
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
07-16-2008
Tytalus
echo {1..9}^2\;|bc
Join Date: Jun 2003
Location: Scotland
Posts: 431
Code:
# awk -F"," '{cnt[$1]+=$2}END{for (x in cnt){print x,cnt[x]}}' infile A 13 B 2 D 7 E 2 G 3
Tytalus
View Public Profile
Find all posts by Tytalus
Find Tytalus's past nominations received
Find Tytalus's present nominations given