Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do I count the number of occurances

Status
Not open for further replies.

Birbone

MIS
Dec 20, 2000
141
US
I just ran "vutil -unload -t filename1 filename1.txt"

how do I read only the first five characters of each line of the text file and generate an output file that will only show me each word that appears once and the number of times it occured.

-B :cool:
birbone@earthlink.net
 



Whatever | cut -c 1-5 | sort | uniq -c | sort +0n

All the words which occur only once will be at the top of the list.

---

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top