TIP: Click on subject to list as thread! ANSI
echo: qedit
to: ALL
from: CARLO HOGEVEEN
date: 1997-09-03 04:47:00
subject: Re: find lines 80 char

From: Carlo Hogeveen 
The following macro will do that, but it also works with the menu Find,
although you would have to do a lot of repeated typing then.
proc main()
   string long_line [81] =
".............................................................................
...."
   find(long_line, "givx")
end
Bi
Dave Guyer wrote:
> 
> I find I spend more time doing code reviews than I'd like.  Much of
> it is spent on programming style issues.  So I am currently working
> on a macro to search for these problems.  For many of them, I return
> a compressed view of the find results that I can edit then print.
> 
> I'm stumped on one.  How can I use compressed view to return line
> numbers and their length for all lines in the file longer than 80
> characters?  I haven't been able to figure out how to use find and a
> regular expression to return a compressed view of lines longer than
> 80 characters, and if I could, I'm not sure how I'd get the length
> into the compressed view.
> 
> All ideas and suggestions will be gratefully accepted!  Thanks in
> advance.
---
---------------
* Origin: apana>>>>>fidonet [sawasdi.apana.org.au] (3:800/846.13)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.