On Thu, 08 Dec 2011 07:53:33 -0800, peasthope wrote:

> What is a convenient tool for counting the occurances of a specific byte
> sequence in a file?  Count the occurances of "the" or  %13%10"the " in a
> text file for example.

Quick and dirty sample:

***
grep -o "the" /path/to/file.txt | wc -w
***

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2011.12.08.16.05...@gmail.com

Reply via email to