home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: bit.listserv.ibm-main
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!stortek!LSTC2VM.stortek.com!MCMASTER
- From: MCMASTER@LSTC2VM.stortek.com (Jim McMaster)
- Subject: Re: moving all texts in xedit file one space to the right
- Message-ID: <1687FABFF.MCMASTER@LSTC2VM.stortek.com>
- Sender: usenet@stortek.com
- Nntp-Posting-Host: lstc2vm.stortek.com
- Organization: StorageTek SW Engineering
- References: <IBM-MAIN%92101215414708@VM1.CC.UAKRON.EDU>
- Date: Tue, 13 Oct 1992 18:13:50 GMT
- Lines: 22
-
- In article <IBM-MAIN%92101215414708@VM1.CC.UAKRON.EDU>
- Don Tang <V1426G@TEMPLEVM.BITNET> writes:
-
- >I am trying to find if there is any command that enable to move all texts
- >of each line one space to the right in an xedit file? It takes too much
- >time if I do it line by line in a long file.
- >
- >Thanks!
-
- It actually takes two subcommands "SHIFT RIGHT 1" followed by
- "REPEAT *". "REPEAT" only works as long as the subcommand being
- repeated has a zero return code, though. If the right shift causes a
- character to be truncated, the return code is nonzero and REPEAT stops.
- This might be exactly what you want to happen...you can't lose data
- without knowing it.
-
- Another way is with the prefix macro ">>". Put ">>1" on the first line
- of the file and ">>" on the last, and all lines are shifted one
- character to the right. You will get a message telling how many lines
- were truncated, but no indication which ones.
-
- Jim McMaster
-