said:
>Is that available on your web site (or could you make it so)?
No need. It's tiny. Of course, you neglected to ask which editor. I use
something called PrEditor and its macro language is basically awk.
The regex says find the line with the loopback address and select the
couple of lines of fluff that preceed it and everthing up to the next
blank line. The replace replaces each match with nothing until there are
no more matches.
If you have perl or awk installed. It would be simple to port this over.
I could probably convince EPM to do the same thing, but it would be
cumbersome.
Steven
--
----------------------------------------------------------------------
"Steven Levine" MR2/ICE 3.00 beta 04 #10183 eCS/Warp/DIY/14.103a_W4 etc.
www.scoug.com irc.ca.webbnet.info #scoug (Wed 7pm PST)
----------------------------------------------------------------------
function Cln127()
{
local s
save_position()
goto_buffer_top()
search_count = MAX_SEARCH
s = "^-.*\\n.*\\n.*127.000.000.001.*127.000.000.001.*\\n(..*\\n)*\\n"
replace(s,"",SEARCH_FWD_REGEX)
restore_position(1)
} # Cln127
=====================================================
To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-help".
For problems, contact the list owner at
"postmaster@scoug.com".
=====================================================
<< Previous Message <<
>> Next Message >>
Return to [ 25 |
April |
2007 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS
RESERVED.
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International
Business Machines Corporation.
All other trademarks remain the property of their respective owners.