Page 1 of 1

total line count

Posted: Tue Jan 06, 2015 3:12 am
by hjack
I have over 200 xml files, all written using Textpad.

Short of opening each file and recording the total line count, does anyone know of a way to obtain a total number of lines in all the files in a given directory?

Posted: Tue Jan 06, 2015 3:26 am
by ak47wong
Here's one way:
  1. Click Search > Find In Files.
  2. In Find what, enter ^
  3. In In files, enter *.xml
  4. In In folder, select the desired folder.
  5. Under Report detail, select All matching lines.
  6. Select Regular expression.
  7. Click Find.
The total number of lines will be shown at the bottom of the Find In Files dialog and Search Results window.

total line count

Posted: Tue Jan 06, 2015 3:36 am
by hjack
Ak, thank you so much. Works perfectly. Saved me many hours and prevented me from burning-up my calculator.