Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <40A75518.2050105@ieee.org> Date: Sun, 16 May 2004 12:48:40 +0100 From: Jason Pearce User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031208 MIME-Version: 1.0 To: Cygwin List Subject: Re: The rxvt.1 manpage of the rxvt-2.7.10-4 package Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit > > >An easy way of deleting the YODL garbage is to use the VIM editor. >The following VIM script (call it patch.vim) does the job: > >Q >%s/^\.YODLTAGSTART\./\.YYODLTAGSTART\./ >%s/\.YODLTAGSTART\./\r\.YODLTAGSTART\./g >%s/\.YODLTAGSTART\. roffcmd // >%s/\.YYODLTAGSTART\. roffcmd // >%s/\.YODLTAGEND\.// >%s/\n\.YYODLTAGSTART\..*// >1 >/\.TH >1,.-1d >wq > > >Then call VIM to modify the wrong rxvt.1 > >$ vim -s patch.vim -- rxvt.1 > >bye. > >Rodrigo Medina > Great! For other non-vim users (who don't even install it) here is the sed script equivilent s/^\.YODLTAGSTART\./\.YYODLTAGSTART\./ s/\.YODLTAGSTART\./\r\.YODLTAGSTART\./g s/\.YODLTAGSTART\. roffcmd // s/\.YYODLTAGSTART\. roffcmd // s/\.YODLTAGEND\.// s/\n\.YYODLTAGSTART\..*// call it patch.sed. $ cp /usr/man/man1/rxvt.1 /tmp/ $ sed -f patch.sed /tmp/rxvt.1 > /usr/man/man1/rxvt.1 Jason -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/