Re: Re: string occurrences

2010-01-28 Thread roberto
On Tue, Jan 26, 2010 at 10:58 PM, Clive Standbridge clive.standbri...@myriadgroup.com wrote: Eric Gerlach wrote: On Sat, Jan 23, 2010 at 04:11:03PM -0600, Brian Ryans wrote: Quoting roberto on 2010-01-23 15:33:53: is there any linux built-in utilities to count how many times a string

Re: string occurrences

2010-01-28 Thread Brian Ryans
Quoting Clive Standbridge on 2010-01-26 15:58:00: Brian seems to have thought of everything. Not everything :) Trying to learn, to the point of mastery, two languages at once though. Eric's (no pipe to wc) works far better when you're just interested in the number of lines that match, and not

Re: string occurrences

2010-01-26 Thread Eric Gerlach
On Sat, Jan 23, 2010 at 04:11:03PM -0600, Brian Ryans wrote: Quoting roberto on 2010-01-23 15:33:53: is there any linux built-in utilities to count how many times a string occur in a text file ? I don't know of any actual utilities to do so, but there's a handy little pipeline that I use

Re: Re: string occurrences

2010-01-26 Thread Clive Standbridge
Eric Gerlach wrote: On Sat, Jan 23, 2010 at 04:11:03PM -0600, Brian Ryans wrote: Quoting roberto on 2010-01-23 15:33:53: is there any linux built-in utilities to count how many times a string occur in a text file ? I don't know of any actual utilities to do so, but there's a handy

string occurrences

2010-01-23 Thread roberto
hello is there any linux built-in utilities to count how many times a string occur in a text file ? ps: sorry for the italian post -- roberto -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Re: string occurrences

2010-01-23 Thread Brian Ryans
Quoting roberto on 2010-01-23 15:33:53: is there any linux built-in utilities to count how many times a string occur in a text file ? I don't know of any actual utilities to do so, but there's a handy little pipeline that I use as a generic string-counter that, so far, works for all files I've

Re: string occurrences

2010-01-23 Thread green
roberto wrote at 2010-01-23 15:33 -0600: is there any linux built-in utilities to count how many times a string occur in a text file ? grep string file | wc -l will give you the number of *lines* that contain a specific string. Only counts 1 if the string exists twice in a line, or 0 if it

Re: string occurrences

2010-01-23 Thread Wayne linux...@gmail.com
roberto wrote: hello is there any linux built-in utilities to count how many times a string occur in a text file ? ps: sorry for the italian post Yes. man wc Wayne -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact