Re: Perl script to return the number of occurences of multiple lines in a file



On Dec 29, 3:13 pm, shane_melvi...@xxxxxxxxx wrote:
I am trying to write a script to return the number of occurences of
certain text/lines/strings in a file.

perldoc -q count

How can I count the number of occurrences of a substring
within a string?

If anyone can help out drop me a mail

No. That's not how usenet works.


--
The best way to get a good answer is to ask a good question.
David Filmer (http://DavidFilmer.com)

.



Relevant Pages

  • RE: search
    ... perldoc -q count ... How can I count the number of occurrences of a substring within a string? ...
    (perl.beginners)
  • replace all occurrences of a substring in a string (RE)
    ... Anyway I would like to replace all occurrences of a substring in a string which consists of html code. ...
    (alt.php)
  • Re: Fastcode Ansi StringReplace B&V 0.2
    ... "Gary Williams" <no spam please> wrote in message ... characters (not normally the same length as 1st substring), ... should contain between 0 and approx.100 occurrences to replace.. ...
    (borland.public.delphi.language.basm)
  • Re: String question
    ... > How to select substring? ... Please read the posting guidelines for this group. ... perldoc -f substr ... Sinan Unur ...
    (comp.lang.perl.misc)
  • Re: simple grep Q
    ... occurrences of a substring in a bunch of php files ... ahh - what should one do for multiple occurrences on one line? ...
    (comp.unix.shell)