Re: Counting Identical lines in a file with BBEdit & Grep
Re: Counting Identical lines in a file with BBEdit & Grep
- Subject: Re: Counting Identical lines in a file with BBEdit & Grep
- From: Chris Janton <email@hidden>
- Date: Mon, 28 Jul 2003 16:25:03 -0700
>Given a text file containing multiple instances of about a dozen
>different lines, is it possible, in BBEdit, to count the number of
>times each unique line appears?
I offer up the simple shell answer
sort filename | uniq -c
uniq comes from the GNU textutils...use fink to install
8)
----------------------------------
Chris Janton - face at CentosPrime dot COM
Netminder for Opus1.COM
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.