The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Counting and sort
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Forum Rules
FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
Counting and sort
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
05-23-2006
reborg
Administrator
Hexxagon Champion!
Join Date: Mar 2005
Location: Ireland
Posts: 3,513
There were just a couple of typos in Jim's solution, here is what he intended to post.
Code:
awk ' {arr[$0]++} END { for(i in arr) { print i, arr[i] } } ' filename > newfilename
reborg
View Public Profile
Find all posts by reborg