Article View: bit.listserv.xedit-l
Article #81Re: How to insert a line break using c/ ?
From: Paul Kloves
Date: Mon, 16 Dec 1996 00:00
Date: Mon, 16 Dec 1996 00:00
46 lines
2626 bytes
2626 bytes
At 12:29 AM 12/15/96 -0500, you wrote: >This question applies to XEDIT and KEDIT. I use both. So it may require >two different replies. > >I want to do a change in which I replace a string with a line break >followed by the same string. For example: (snip) >Simple, huh? But can it be done. I'm sick of using the split command over >and over. For XEDIT, the bad news is that you have to use the SPLIT command, but the good news is that you can use one command to do it. In XEDIT, there's not a character that implies a line break like there is in DOS. The LOCATE command can be used to execute a command whenever a given string is found. For instance, assuming that we are looking for your <P> marker, and want to do a SPLIT afterwards. We could execute: LOCATE /<P>/ SPLIT AFTER /<P> / You could just keep reexecuting this command until you reach the end of the file (assuming that WRAP is OFF). If there is routinely more than one paragraph marker in a line, or the paragraph marker doesn't start in column 1, you may want to write an XEDIT macro using the SPLIT command to do what you want. As for KEDIT, I'm not sure if thier LOCATE command has the command option. And, you may be able to insert a linefeed character like you want. Since I don't have a copy of KEDIT anymore, I can't say. Good luck, -Paul *=======================*==============================================* * Paul Kloves, * BMC Software, Inc. makes no representations * * * or promises regarding the reliability, * * BMC Software Inc. * completeness, or accuracy of the information * * (713) 918-1771 * provided in this discussion, and all readers * * pkloves@bmc.com or * agree not to rely on nor take any action * * usnmn2wn@ibmmail * against BMC Software in response to this * * * information. * *=======================*==============================================*
Technical Details
Message-ID:
<3.0.32.19961216102112.0069ebfc@pop.bmc.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c92b,b329e359799ae08f X-Google-Attributes: gid10c92b,public From: Paul Kloves <pkloves@CROW.BMC.COM> Subject: Re: How to insert a line break using c/ ? Date: 1996/12/16 Message-ID: <3.0.32.19961216102112.0069ebfc@pop.bmc.com> X-Deja-AN: 204616046 sender: VM System Editor List <XEDIT-L@UGA.CC.UGA.EDU> x-sender: pkloves@pop.bmc.com comments: Gated by NETNEWS@AUVM.AMERICAN.EDU content-type: text/plain; charset="us-ascii" mime-version: 1.0 newsgroups: bit.listserv.xedit-l x-mailer: Windows Eudora Pro Version 3.0 (32)