Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1023.Count and statistics -- How to count how many lines starting with an "a" ?

User: Soly -- 2012-11-06          << 1022  1024 >>
Hits: 1464
Type: Count and statistics   
Search all Count and statistics examples
Description:
How to count how many lines starting with an "a" ?
Input Sample:
abc
bbc
abd
bba
Output Sample:
the count of how many lines starting with an a is=2
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. open "Tools->Pattern Counter" menu
2. check "file/http" option, and select the file to be counted
3. click "Clear" button to clear default pattern
4. click "add" to add a new pattern
* set "Name" to 
* set "Pattern" to: 
* click "ok"
5. check "Regular exp" option, and uncheck "Cross Line" option
6. select this pattern in the list and click count, you can get the count in the "count" column.

Screenshot 1:  Pattern_Counter_Window


Similar Examples:
How to count how many characters in a web page? (62%)
How to count how many IP addresses are appearing in  a text file? (61%)
How to sort many lines by comparing the second word in each line? (59%)
How to count the number of words that started with "en"? (57%)
How to count how many http address and email address appearing in a html file? (57%)
How to count how many characters, punctuations in a text file? (56%)
How to count the consecutive lines with the same pattern? (55%)
How to replace content of many files with text from a template file? (55%)

Check Demo of Count and statistics
Keywords:
starting with  starting  pattern counter  counter  count how many  statistics  statist  count and statistics  ics  clear  count statistics in list  set default  count lines  button click count  lines to column  lines in a column  how to count in statistics  how to count statistics