Count lines in all open files

Help with writing and playing macros

Count lines in all open files

Postby TheLoon » Thu Mar 03, 2005 7:16 am

Does anyone have a macro that will count the lines in all currently open files?
User avatar
TheLoon
Newbie
 
Posts: 1
Joined: Thu Mar 03, 2005 12:00 am

Re: Count lines in all open files

Postby oracledba » Thu Mar 03, 2005 5:00 pm

An easy way to get your answer is to do a search replace on all open files. Do a non regular expression search for ^p and replace with same ^p.

The upside to doing this is UE gives you feedback on what it replaced.
Example 14 items replaced in 2 files.

The down side of this method is that you have just marked every file as being changed hence when you exit you'll be prompted to save your changes.
User avatar
oracledba
Basic User
Basic User
 
Posts: 24
Joined: Wed Jan 19, 2005 12:00 am


Return to Macros