Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to count lines containing a search term with notepad++? [closed]

Tags:

notepad++

I want to find the number of lines containing a search term and ignore duplicates on the same line.

like image 691
quipquopro Avatar asked Dec 03 '13 03:12

quipquopro


People also ask

How do you count lines of code in Notepad++?

Open your Notepad++ instance. Press CTRL + SHIFT + F to open the " Find in Files " dialog. In the " Find what " input box, enter " \S+\s*$ " as the regular expression to find out the lines containing some text.

How do you count characters in notepad?

If you double click around 'Length' in status bar you will get a character count, word count . . . etc.


1 Answers

Try this out:

  1. Issue Ctrl+F

  2. Under search mode, select "Regular expression"

  3. In your search term, type <your search term>.*$ (It is assumed that your search term contains only alphanumeric characters. You may need to perform necessary escape if your search term contains symbol.)

  4. Select Count and the number of lines containing the search term will be displayed.

Hope this helps.

like image 85
Dale Avatar answered Nov 05 '22 16:11

Dale