User: Soly -- 2012-11-06 << 1022 1024 >> |
Hits: 3443 |
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 |