total line count

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
hjack
Posts: 26
Joined: Mon Apr 17, 2006 3:06 am
Location: Kentucky

total line count

Post 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?
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post 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.
hjack
Posts: 26
Joined: Mon Apr 17, 2006 3:06 am
Location: Kentucky

total line count

Post by hjack »

Ak, thank you so much. Works perfectly. Saved me many hours and prevented me from burning-up my calculator.
Post Reply