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
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
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
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
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
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
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
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
8 matches
Mail list logo